aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/func.bash
blob: fb2ee77fde9feeda4c699e35bf6c62920c85b068 (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" >> /root/.bash_profile
}

copy-home-dot-file() {
    cp "/bootstrap/home-dot/$1" "/root/.$1"
}