Add arkdep_bin to PATH
This commit is contained in:
parent
6ddd34b07d
commit
e073cb0e7c
2 changed files with 4 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
# Utilized to prioritize wrapper applications in PATH
|
||||||
|
PATH="/usr/arkdep_bin:$PATH"
|
|
@ -1,9 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ ! $EUID -eq 0 ]]; then
|
# Elevate permissions to root
|
||||||
printf 'You have to be root to perform this action.\n'
|
[[ $EUID -eq 0 ]] || exec sudo bash $0 $@
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ $@ =~ (-r|--root) ]] && no_check=1 # Do not check if custom root is defined
|
[[ $@ =~ (-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
|
[[ $LD_LIBRARY_PATH =~ (libfakeroot) ]] && no_check=1 # Do not check if running as fakeroot
|
Loading…
Add table
Reference in a new issue