Update system_backup.sh for type command to work correctly even when set -e
This commit is contained in:
parent
9e600a56a7
commit
86592bc8d2
@ -58,7 +58,7 @@ sudo cp -rf /etc/inittab ./.system_backup
|
||||
sudo rm -rf /etc/inittab
|
||||
fi
|
||||
|
||||
type fbcp > /dev/null 2>&1
|
||||
type fbcp > /dev/null 2>&1 && :
|
||||
if [ $? -eq 0 ]; then
|
||||
sudo touch ./.system_backup/have_fbcp
|
||||
sudo rm -rf /usr/local/bin/fbcp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user