aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-debian-dev/bootstrap/func.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-08-15 00:08:43 +0800
committercrupest <crupest@outlook.com>2024-08-15 00:08:43 +0800
commit909c5e8aa53017eaffd4171835b3c66949c64f7f (patch)
tree09504e7755b7803e518baaa11d255f35ed6c9817 /docker/crupest-debian-dev/bootstrap/func.bash
parent1bca7471d864bf859a6189a87adf92856729ec97 (diff)
parentd50545a36323e7a9775ab933021a94a9d98058f4 (diff)
downloadcrupest-909c5e8aa53017eaffd4171835b3c66949c64f7f.tar.gz
crupest-909c5e8aa53017eaffd4171835b3c66949c64f7f.tar.bz2
crupest-909c5e8aa53017eaffd4171835b3c66949c64f7f.zip
Merge branch 'debian-dev'
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/func.bash')
-rw-r--r--docker/crupest-debian-dev/bootstrap/func.bash15
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/func.bash b/docker/crupest-debian-dev/bootstrap/func.bash
new file mode 100644
index 0000000..d17fa1b
--- /dev/null
+++ b/docker/crupest-debian-dev/bootstrap/func.bash
@@ -0,0 +1,15 @@
+is_true() {
+ if [[ "$1" =~ 1|on|true ]]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
+append-bash-profile() {
+ cat "/bootstrap/bash-profile/$1" >> /home/$CRUPEST_DEBIAN_DEV_USER/.bash_profile
+}
+
+copy-home-dot-file() {
+ cp "/bootstrap/home-dot/$1" "/home/$CRUPEST_DEBIAN_DEV_USER/.$1"
+}