Add check for missing commands setfacl and git

This commit is contained in:
2025-08-05 11:40:56 +09:00
parent 77ec20a768
commit 788064d019
2 changed files with 11 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ SUDO_USER="<SUDO USER NAME TO USE>"
USE_SUDO=<1: use sudo, 0: no sudo used> USE_SUDO=<1: use sudo, 0: no sudo used>
``` ```
The script will create the sudo user if needed automatically
### base_setup.sh ### base_setup.sh
as is, if the folder exists it will only copy the scripts, will not alter or change anything. as is, if the folder exists it will only copy the scripts, will not alter or change anything.

View File

@@ -39,6 +39,15 @@ if [ "$(whoami)" != "root" ]; then
error=1; error=1;
fi; 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 if [ $error -eq 1 ]; then
exit; exit;
fi; fi;