Add reset display script

This commit is contained in:
2024-07-01 11:29:05 -04:00
parent d6118981aa
commit 745b0751a5
2 changed files with 2 additions and 3 deletions

View File

@@ -21,8 +21,7 @@ ask_ok() {
} }
is_root() { is_root() {
user=$(whoami) [[ $EUID -gt 0 ]] && echo "Script must be run with sudo" && exit 1
[[ $user != "root" ]] && echo "Script must be run with sudo" && exit 1
} }
copy_manual() { copy_manual() {

View File

@@ -9,7 +9,7 @@ parent=${parent%/*}
echo "This script will only work for the current user" echo "This script will only work for the current user"
is_root && echo "Do not run as root (do not use sudo)" && exit 1 [[ $EUID -eq 0 ]] && echo "Do not run as root (do not use sudo)" && exit 1
to_reset=( to_reset=(
/org/mate/panel/ /org/mate/panel/