fix: Add root user checks, auto-remove .git from the iso
This commit is contained in:
@ -51,6 +51,10 @@ check_ret() {
|
||||
#################
|
||||
## main script ##
|
||||
#################
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
error "You should run this script as root"
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
error "Please specify a name for the archive"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user