We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b1428 commit 21a2b33Copy full SHA for 21a2b33
script/autotier-init-dirs
@@ -33,12 +33,6 @@ function join_by { local IFS="$1"; shift; echo "$*"; }
33
34
command -v rsync > /dev/null 2>&1 || { echo "rsync must be installed to run this script. Install it and try again."; exit 1; }
35
36
-if [[ "$#" < "2" ]]; then
37
- echo Must provide at least two tier paths.
38
- usage
39
- exit 1
40
-fi
41
-
42
while getopts "h" opt; do
43
case $opt in
44
h)
@@ -54,6 +48,12 @@ while getopts "h" opt; do
54
48
esac
55
49
done
56
50
51
+if [[ "$#" < "2" ]]; then
52
+ echo Must provide at least two tier paths.
53
+ usage
+ exit 1
+fi
+
57
# check that each argument is a valid path
58
for tier in $@; do
59
if [ ! -d "$tier" ]; then
0 commit comments