aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-debian-dev/bootstrap/func.bash
blob: d17fa1be8e3b05edc5c897795ef39f1436f9b5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
}