Add check for missing commands setfacl and git
This commit is contained in:
@@ -39,6 +39,15 @@ if [ "$(whoami)" != "root" ]; then
|
||||
error=1;
|
||||
fi;
|
||||
|
||||
if [ -z "$(command -v setfacl)" ]; then
|
||||
echo "Missing setfacl command, aborting";
|
||||
error=1;
|
||||
fi;
|
||||
if [ -z "$(command -v git)" ]; then
|
||||
echo "Missing git command, aborting";
|
||||
error=1;
|
||||
fi;
|
||||
|
||||
if [ $error -eq 1 ]; then
|
||||
exit;
|
||||
fi;
|
||||
|
||||
Reference in New Issue
Block a user