Skip to content

Commit a502fe0

Browse files
authored
Don't allow script to erase repo (#5995)
1 parent ddce6e9 commit a502fe0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/build_zip.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
set -x
1515
REPO=`pwd`
1616

17+
if [[ $# -lt 1 ]]; then
18+
cat 1>&2 <<EOF
19+
USAGE: $0 [output_directory]
20+
EOF
21+
exit 1
22+
fi
23+
1724
# The first and only argument to this script should be the name of the
1825
# output directory.
1926
OUTPUT_DIR="$REPO/$1"

0 commit comments

Comments
 (0)