File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 64
64
ccache_args=\$ args
65
65
fi
66
66
67
+ if [ -t 1 ] ; then
68
+ TERMINAL_ARGS=-it ` # Run in interactive mode and simulate a TTY`
69
+ else
70
+ TERMINAL_ARGS=-i ` # Run in interactive mode`
71
+ fi
67
72
68
73
sudo docker run --rm ` # delete (temporary) image after return` \\
69
- -it ` # Run in interactive mode and simulate a TTY ` \\
74
+ \$ {TERMINAL_ARGS} \\
70
75
--privileged=true ` # Run in privileged mode ` \\
71
76
--cap-add=SYS_PTRACE \\
72
77
--security-opt seccomp=unconfined \\
87
92
echo -e " \tThis can cause problems with some scripts (like fdb-clangd)"
88
93
fi
89
94
chmod +x $HOME /bin/fdb-dev
95
+ chmod +x $HOME /bin/clangd
90
96
echo " To start the dev docker image run $HOME /bin/fdb-dev"
91
97
echo " $HOME /bin/clangd can be used for IDE integration"
92
98
echo " You can edit these files but be aware that this script will overwrite your changes if you rerun it"
You can’t perform that action at this time.
0 commit comments