mod: remodel

This commit is contained in:
Strix 2023-10-14 22:38:06 +02:00
parent 99c3f02a2d
commit 9434b666e5
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
4 changed files with 68 additions and 13 deletions

View file

@ -12,6 +12,11 @@ bool() {
}
run() {
# Check if command starts with NO_RUN ($*) and remove it
if echo "$*" | grep -q "^NO_RUN"; then
return 0
fi
if bool "$DRY_RUN"; then
echo "DRY: + $*"
else
@ -21,7 +26,7 @@ run() {
}
is_graphical() {
command -v $PREF_TERM && return 0 || return 1
command -v $PREF_TERM > /dev/null && return 0 || return 1
}
command -v $SYS_SUDO || SYS_SUDO=""
command -v $SYS_SUDO > /dev/null || SYS_SUDO="NO_RUN"