Skip to content

Commit a6eb06d

Browse files
author
ng
committed
backup prompt bug fix
1 parent 582c38a commit a6eb06d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/flash_script_revshell.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ fi
3131
. $COMMONDIR/util_functions.sh
3232

3333
ORIGINALBACKUPSDIR=/tmp/backup_original_partitions
34-
HAVE_BACKUP=$([ -d $ORIGINALBACKUPSDIR ])
34+
35+
HAVE_BACKUP=0
36+
[ -d "$ORIGINALBACKUPSDIR" ] && HAVE_BACKUP=1
3537

3638

3739
setup_flashable

0 commit comments

Comments
 (0)