diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-10-11 17:26:23 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-10-11 17:26:23 -0400 |
| commit | 8c8c0b71c2cd6cebac1d5d2a84e0add59b638791 (patch) | |
| tree | 0c1142ec66b9f4bf0c4b26cbf25ee9e72520a80d /makeDir.sh | |
| parent | 63bd2aa6b7d35484bf561fab91247a7513df22dd (diff) | |
| download | swipeGuess-8c8c0b71c2cd6cebac1d5d2a84e0add59b638791.tar.gz | |
makeDir: actually mkdir if not exists
Diffstat (limited to 'makeDir.sh')
| -rwxr-xr-x | makeDir.sh | 3 |
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") |
