From 7f3a72fd3c12967f1f330de51b123f23990aaf6b Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 13 Aug 2024 23:33:42 +0800 Subject: refactor(docker/debian-dev): rename debian-dev to crupest-debian-dev. --- docker/crupest-debian-dev/bootstrap/func.bash | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docker/crupest-debian-dev/bootstrap/func.bash (limited to 'docker/crupest-debian-dev/bootstrap/func.bash') diff --git a/docker/crupest-debian-dev/bootstrap/func.bash b/docker/crupest-debian-dev/bootstrap/func.bash new file mode 100644 index 0000000..fb2ee77 --- /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" >> /root/.bash_profile +} + +copy-home-dot-file() { + cp "/bootstrap/home-dot/$1" "/root/.$1" +} -- cgit v1.2.3