Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Mar 7, 2024
1 parent 04a6eae commit a4d2fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6141,7 +6141,7 @@ device_dumprd() {
print "* Reminder to backup dump tars if needed"
if [[ -s $dump/baseband.tar ]]; then
read -p "$(input "Baseband dump exists in $dump/baseband.tar. Overwrite? (y/N) ")" opt
if [[ $opt == 'Y' && $opt == 'y' ]]; then
if [[ $opt == 'Y' || $opt == 'y' ]]; then
log "Deleting existing dumped baseband"
rm $dump/baseband.tar
cp baseband.tar $dump
Expand Down Expand Up @@ -6169,7 +6169,7 @@ device_dumprd() {
$scp -P $ssh_port [email protected]:$tmp/activation.tar .
if [[ -s $dump/activation.tar ]]; then
read -p "$(input "Activation records dump exists in $dump/activation.tar. Overwrite? (y/N) ")" opt
if [[ $opt == 'Y' && $opt == 'y' ]]; then
if [[ $opt == 'Y' || $opt == 'y' ]]; then
log "Deleting existing dumped activation"
rm $dump/activation.tar
cp activation.tar $dump
Expand Down

0 comments on commit a4d2fe2

Please sign in to comment.