aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/func.bash
diff options
context:
space:
mode:
Diffstat (limited to 'docker/debian-dev/bootstrap/func.bash')
-rw-r--r--docker/debian-dev/bootstrap/func.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/func.bash b/docker/debian-dev/bootstrap/func.bash
index 82088f4..fb2ee77 100644
--- a/docker/debian-dev/bootstrap/func.bash
+++ b/docker/debian-dev/bootstrap/func.bash
@@ -1,3 +1,11 @@
+is_true() {
+ if [[ "$1" =~ 1|on|true ]]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
append-bash-profile() {
cat "/bootstrap/bash-profile/$1" >> /root/.bash_profile
}