mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Prevent sudo (#1109)
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
cd "$(dirname "$0")";export base="$(pwd)"
|
||||
output_file=diagnose.result;rm $output_file
|
||||
export LANG=C;export LC_ALL=C
|
||||
case $(whoami) in
|
||||
root)echo -e "\e[31m[$0]: This script is NOT to be executed with sudo or as root. Aborting...\e[0m";exit 1;;
|
||||
esac
|
||||
|
||||
|
||||
x() { ii_exec "$@" 2>&1 | tee -a $output_file ; }
|
||||
e() { ii_box "$@" | tee -a $output_file ; }
|
||||
|
||||
Reference in New Issue
Block a user