Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Ask for sudo if not running as root [Arch Linux] #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arch/install-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#

if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run with root privileges' >&2
exit 1
#rerun the script with root privileges
exec sudo "$0" "$@"
fi

# Use Qi to check for exact package name
Expand Down