summaryrefslogtreecommitdiff
path: root/script/delete_dir.sh
blob: 93df582c0b02c9572734cfddb3615eee36908a34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
delete_dir() {
    path="$1"

    if [ "$DELETE_OBSOLETE" = 'YES' ]; then
        if [ -e "$path" ]; then
            echo '==='
            echo "rmdir \"$path\""
            if [ "$DRY" != 'YES' ]; then
                rmdir "$path"
	    fi
        fi
    fi
}