Add arkdep_bin to PATH

This commit is contained in:
Dennis ten Hoove 2024-06-09 21:39:47 +02:00
parent 6ddd34b07d
commit e073cb0e7c
2 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,2 @@
# Utilized to prioritize wrapper applications in PATH
PATH="/usr/arkdep_bin:$PATH"

View file

@ -1,9 +1,7 @@
#!/usr/bin/env bash
if [[ ! $EUID -eq 0 ]]; then
printf 'You have to be root to perform this action.\n'
exit 1
fi
# Elevate permissions to root
[[ $EUID -eq 0 ]] || exec sudo bash $0 $@
[[ $@ =~ (-r|--root) ]] && no_check=1 # Do not check if custom root is defined
[[ $LD_LIBRARY_PATH =~ (libfakeroot) ]] && no_check=1 # Do not check if running as fakeroot