"vscode:/vscode.git/clone" did not exist on "1ef8d566292e6948626cc5b085339ec4e01c224b"
Unverified Commit ff3ce4da authored by Henrique's avatar Henrique Committed by GitHub
Browse files

Fix Issue #1825 (#1826)

the modifications verify user privilege and prevent improper script execution.
parent 81d3492a
......@@ -18,6 +18,18 @@ print_usage() {
echo ''
}
print_err() {
echo ""
echo "$*"
echo ""
}
uid=$(id -u)
if [ $uid -ne 0 ]; then
print_err "Please use sudo or run the script as root."
exit 1
fi
while [ -n "$1" ]; do
if [ "$1" = "-s" ]; then
shift
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment