about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xmakeDir.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/makeDir.sh b/makeDir.sh
index 863497e..5c2d5c0 100755
--- a/makeDir.sh
+++ b/makeDir.sh
@@ -1,6 +1,7 @@
 #!/bin/sh
 dir="$1"
-rm $dir/*
+mkdir -p "$dir"
+rm "$dir/"*
 source "$(dirname "$0")/functions.sh"
 while read -r line; do
 	fl=$(firstLetter "$line")