Skip to content

Commit 4188be2

Browse files
committed
fix: remove unreachable command
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 74f9e50 commit 4188be2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

linux/massStorageCopy.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ usage() {
2020
echo "## Note:"
2121
echo "## -I and -O are optionals and kept for backward compatibility."
2222
echo "############################################################"
23-
exit 0
23+
exit "$1"
2424
}
2525

2626
if [ $# -lt 2 ]; then
27-
usage
28-
exit 1
27+
usage 1
2928
fi
3029

3130
# Parsing options

macosx/massStorageCopy.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ usage() {
2020
echo "## Note:"
2121
echo "## -I and -O are optionals and kept for backward compatibility."
2222
echo "############################################################"
23-
exit 0
23+
exit "$1"
2424
}
2525

2626
if [ $# -lt 2 ]; then
27-
usage
28-
exit 1
27+
usage 1
2928
fi
3029

3130
# Parsing options

0 commit comments

Comments
 (0)