wip
This commit is contained in:
parent
51dd337f8c
commit
14afc57f44
1 changed files with 141 additions and 148 deletions
|
@ -1,4 +1,3 @@
|
|||
{
|
||||
#!/usr/bin/env bash
|
||||
# ─< ANSI color codes >───────────────────────────────────────────────────────────────────
|
||||
RED='\033[0;31m'
|
||||
|
@ -29,11 +28,6 @@
|
|||
command -v "$@" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||
command_exists() {
|
||||
command -v "$@" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# ─< Check if the user is root and set sudo variable if necessary >───────────────────────
|
||||
check_root() {
|
||||
if [[ "$(id -u)" -ne 0 ]]; then
|
||||
|
@ -156,4 +150,3 @@
|
|||
curl -o /opt/scripts/hlpush.sh https://git.k4li.de/scripts/bash/raw/branch/main/setup/hlpush.sh
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue