Update system_backup.sh for type command to work correctly even when set -e

This commit is contained in:
Yuichiro Tsuchiya 2019-07-18 13:19:12 +09:00
parent 9e600a56a7
commit 86592bc8d2

View File

@ -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