diff options
author | crupest <crupest@outlook.com> | 2023-12-27 23:58:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-12-27 23:58:24 +0800 |
commit | a459ea7b83d4b3394cde8889c61c0a8a6f73464d (patch) | |
tree | 2ced6ac68db923e28007782c5ebe3426dd15e42f /docker/debian-dev/bootstrap/func.bash | |
parent | 607b35aa8f232add0b545370ba9bda9abbb0c615 (diff) | |
download | crupest-a459ea7b83d4b3394cde8889c61c0a8a6f73464d.tar.gz crupest-a459ea7b83d4b3394cde8889c61c0a8a6f73464d.tar.bz2 crupest-a459ea7b83d4b3394cde8889c61c0a8a6f73464d.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.bash | 8 |
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 } |