Skip to content

Commit

Permalink
Merge pull request #10 from Yutaro-B18016:Ask-for-sudo-if-not-running…
Browse files Browse the repository at this point in the history
…-as-root--Arch-Linux-

Ask for sudo if not running as root [Arch Linux]
  • Loading branch information
Yutaro-B18016 authored Feb 19, 2021
2 parents 58e4894 + 6f5832f commit d32bd49
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d32bd49

Please sign in to comment.