File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 7
7
# see git-config manual page.
8
8
if [ -n " ${LIBBUILDER_GIT_SAFE_DIR+x} " ]
9
9
then
10
- echo " Adding following directories into git's safe.directory"
11
- echo " $LIBBUILDER_GIT_SAFE_DIR " | tr ' :' ' \n' | while read -r dir
12
- do
13
- git config --global --add safe.directory " $dir "
14
- echo " $dir "
15
- done
10
+ echo " Adding following directories into git's safe.directory"
11
+ echo " $LIBBUILDER_GIT_SAFE_DIR " | tr ' :' ' \n' | while read -r dir
12
+ do
13
+ git config --global --add safe.directory " $dir "
14
+ echo " $dir "
15
+ done
16
16
fi
17
17
18
18
# Check if the mount point /arduino-esp32 exists
19
- if [ -d " /arduino-esp32" ]; then
20
- # If it exists, add the -p and -c arguments
19
+ if [ -d " /arduino-esp32" ] && [[ " $@ " == " python3 tools/config_editor/app.py " * ]] ; then
20
+ # Running UI with mount point detected, adding -p and -c arguments
21
21
exec " $@ " -c /arduino-esp32 -p ` stat -c " %u:%g" /arduino-esp32`
22
22
else
23
- # If it doesn't exist, just execute the command without them
23
+ # Running UI without mount point detected or running another command
24
24
exec " $@ "
25
25
fi
You can’t perform that action at this time.
0 commit comments