We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65644a commit a405d6eCopy full SHA for a405d6e
1 file changed
melting-pot.sh
@@ -86,13 +86,6 @@ error() {
86
stderr "[ERROR] $@"
87
}
88
89
-die() {
90
- local code="$1"
91
- shift
92
- error $@
93
- exit "$code"
94
-}
95
-
96
unknownArg() {
97
error "Unknown option: $@"
98
usage=1
@@ -207,7 +200,7 @@ parseArguments() {
207
200
208
201
createDir() {
209
202
test -z "$force" -a -e "$1" &&
210
- die 2 "Directory already exists: $1"
203
+ error "Directory already exists: $1" && exit 2
211
204
212
205
rm -rf "$1"
213
206
mkdir -p "$1"
0 commit comments