added correct test
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user