diff options
author | crupest <crupest@outlook.com> | 2024-08-15 00:08:43 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-08-15 00:08:43 +0800 |
commit | 0dc32c4f8da4f0f52e857775aa240eb3ddca0e9c (patch) | |
tree | 09504e7755b7803e518baaa11d255f35ed6c9817 /docker/crupest-debian-dev/bootstrap/func.bash | |
parent | bb241f176557341187575c5d74049d4e358d7cd3 (diff) | |
parent | f7c13845654289838cd933b2156abd6e7ae575a5 (diff) | |
download | crupest-0dc32c4f8da4f0f52e857775aa240eb3ddca0e9c.tar.gz crupest-0dc32c4f8da4f0f52e857775aa240eb3ddca0e9c.tar.bz2 crupest-0dc32c4f8da4f0f52e857775aa240eb3ddca0e9c.zip |
Merge branch 'debian-dev'
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/func.bash')
-rw-r--r-- | docker/crupest-debian-dev/bootstrap/func.bash | 15 |
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" +} |