File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 7373 elif [ -f /root/upgrade_postgres ]; then
7474 unset RETCODE
7575 /root/upgrade_postgres || RETCODE=$?
76- [ ! $ RETCODE ] && rm /root/upgrade_postgres || exit $RETCODE
76+ [ -z "${ RETCODE}" ] && rm /root/upgrade_postgres || exit $RETCODE
7777 fi
7878 # Necessary to enable backups
7979 install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
Original file line number Diff line number Diff line change 7373 elif [ -f /root/upgrade_postgres ]; then
7474 unset RETCODE
7575 /root/upgrade_postgres || RETCODE=$?
76- [ ! $ RETCODE ] && rm /root/upgrade_postgres || exit $RETCODE
76+ [ -z "${ RETCODE}" ] && rm /root/upgrade_postgres || exit $RETCODE
7777 fi
7878 # Necessary to enable backups
7979 install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
You can’t perform that action at this time.
0 commit comments