diff --git a/install.sh b/install.sh index d648f06..fcfc0a9 100644 --- a/install.sh +++ b/install.sh @@ -1,3 +1,8 @@ +if [ `/usr/bin/id -u` -ne 0 ]; then + echo 'Please, run this script as root' + exit 1 +fi + wget https://raw.githubusercontent.com/adamgoose/forge-cli/master/dist/forge-cli.phar sudo mv forge-cli.phar /usr/local/bin/forge -sudo chmod +x /usr/local/bin/forge \ No newline at end of file +sudo chmod +x /usr/local/bin/forge