"tests/vscode:/vscode.git/clone" did not exist on "9965cb50eac12e397473f01535aab43aae76b4ab"
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() { ...@@ -18,6 +18,18 @@ print_usage() {
echo '' 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 while [ -n "$1" ]; do
if [ "$1" = "-s" ]; then if [ "$1" = "-s" ]; then
shift 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