aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-debian-dev/bootstrap/start/start.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-06-16 11:38:17 +0800
committercrupest <crupest@outlook.com>2024-08-15 01:06:50 +0800
commit3be58f73cf2a3e5be07b1b4813637f15b70249ce (patch)
treed89e618fde02be6d04ee28abcee52842bc802bad /docker/crupest-debian-dev/bootstrap/start/start.bash
parent65ebc1c35b7461a426f5b2555222a285bd716bfd (diff)
downloadcrupest-3be58f73cf2a3e5be07b1b4813637f15b70249ce.tar.gz
crupest-3be58f73cf2a3e5be07b1b4813637f15b70249ce.tar.bz2
crupest-3be58f73cf2a3e5be07b1b4813637f15b70249ce.zip
feat(docker/debian-dev): auto detect tty.
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/start/start.bash')
-rwxr-xr-xdocker/crupest-debian-dev/bootstrap/start/start.bash7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/start/start.bash b/docker/crupest-debian-dev/bootstrap/start/start.bash
new file mode 100755
index 0000000..61533fc
--- /dev/null
+++ b/docker/crupest-debian-dev/bootstrap/start/start.bash
@@ -0,0 +1,7 @@
+#! /usr/bin/env bash
+
+if [ -t 0 ]; then
+ exec bash -l
+else
+ /bootstrap/start/code-server.bash
+fi