added correct test

This commit is contained in:
rick
2019-08-03 23:13:54 +02:00
parent aa812c456c
commit 46d7c1282b

View File

@@ -13,7 +13,7 @@ then
fi fi
id $backupuser > /dev/null 2>&1 id $backupuser > /dev/null 2>&1
if [ $? ! -eq 0 ] if [ $? -ne 0 ]
then then
echo "Please set a valid user within this script" echo "Please set a valid user within this script"
exit 2 exit 2