about summary refs log tree commit diff
path: root/makeDir.sh
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-10-11 17:26:23 -0400
committerZach DeCook <zachdecook@librem.one>2021-10-11 17:26:23 -0400
commit8c8c0b71c2cd6cebac1d5d2a84e0add59b638791 (patch)
tree0c1142ec66b9f4bf0c4b26cbf25ee9e72520a80d /makeDir.sh
parent63bd2aa6b7d35484bf561fab91247a7513df22dd (diff)
downloadswipeGuess-8c8c0b71c2cd6cebac1d5d2a84e0add59b638791.tar.gz
makeDir: actually mkdir if not exists
Diffstat (limited to 'makeDir.sh')
-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")