This commit is contained in:
Benjamin Pasero
2017-12-20 16:57:40 +01:00
parent 6bac0e2235
commit 549cda29da
5 changed files with 13 additions and 13 deletions

View File

@@ -3,11 +3,11 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# If root, ensure that --user-data-dir or --sudo-write is specified
# If root, ensure that --user-data-dir or --file-write is specified
if [ "$(id -u)" = "0" ]; then
for i in $@
do
if [[ $i == --user-data-dir=* || $i == --sudo-write ]]; then
if [[ $i == --user-data-dir=* || $i == --file-write ]]; then
CAN_LAUNCH_AS_ROOT=1
fi
done