Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Do not require root for version (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk authored and mazen160 committed Dec 6, 2018
1 parent 86f6718 commit 9072bab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protonvpn-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version=1.1.2
if [[ ("$UID" != 0) && ("$1" != "ip") && ("$1" != "-ip") && \
("$1" != "--ip") && ! (-z "$1") && ("$1" != "-h") && \
("$1" != "--help") && ("$1" != "--h") && ("$1" != "-help") && \
("$1" != "help") ]]; then
("$1" != "help") && ("$1" != "--version") && ("$1" != "-version") && \
("$1" != "-v") && ("$1" != "--v")]]; then
echo "[!] Error: The program requires root access."
exit 1
fi
Expand Down

0 comments on commit 9072bab

Please sign in to comment.