aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/func.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-12-27 23:58:24 +0800
committercrupest <crupest@outlook.com>2023-12-27 23:58:24 +0800
commit0e8f8eebe1543dafb10ed0d1f7087ffa89a295ea (patch)
tree2ced6ac68db923e28007782c5ebe3426dd15e42f /docker/debian-dev/bootstrap/func.bash
parent4d37e5035b6be2cb09169fef2faaae46d2bee225 (diff)
downloadcrupest-0e8f8eebe1543dafb10ed0d1f7087ffa89a295ea.tar.gz
crupest-0e8f8eebe1543dafb10ed0d1f7087ffa89a295ea.tar.bz2
crupest-0e8f8eebe1543dafb10ed0d1f7087ffa89a295ea.zip
docker(debian-dev): add support to disable sbuild.
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
}