Commit ff5bf66 1 parent 8129dc2 commit ff5bf66 Copy full SHA for ff5bf66
File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 17
17
# Set default vimrc to a visible file
18
18
ARGS=" -u /home/vimtest/vimrc -i NONE"
19
19
20
- # So we can pass the arguments to Vim as it was passed to this script
21
- while [ $# -gt 0 ]; do
22
- ARGS=" $ARGS \" $1 \" "
23
- shift
24
- done
25
-
26
20
# Run as the vimtest user (when no USER is specified in the Dockerfile, i.e.
27
21
# when running as root).
28
22
# This is not really for security. It is for running Vim as a user that's
29
23
# unable to write to your volume.
30
24
if [ " $( id -u) " = 0 ]; then
25
+ # So we can pass the arguments to Vim as it was passed to this script
26
+ while [ $# -gt 0 ]; do
27
+ ARGS=" $ARGS \" $1 \" "
28
+ shift
29
+ done
31
30
exec su -l vimtest -c " cd /testplugin && /vim-build/bin/$BIN $ARGS "
32
31
fi
33
32
34
33
cd /testplugin || exit
35
34
36
35
# shellcheck disable=SC2086
37
- exec " /vim-build/bin/$BIN " $ARGS
36
+ exec " /vim-build/bin/$BIN " " $@ "
You can’t perform that action at this time.
0 commit comments