You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/linux/bin/code.sh
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,11 @@
5
5
6
6
# If root, ensure that --user-data-dir is specified
7
7
if [ "$(id -u)"="0" ];then
8
-
whiletest$# -gt 0
8
+
foriin$@
9
9
do
10
-
if [[ $1== --user-data-dir=* ]];then
10
+
if [[ $i== --user-data-dir=* ]];then
11
11
DATA_DIR_SET=1
12
12
fi
13
-
shift
14
13
done
15
14
if [ -z$DATA_DIR_SET ];then
16
15
echo"It is recommended to start vscode as a normal user. To run as root, you must specify an alternate user data directory with the --user-data-dir argument."1>&2
0 commit comments