diff options
-rwxr-xr-x | create-temp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/create-temp b/create-temp index a022058..982e827 100755 --- a/create-temp +++ b/create-temp @@ -32,6 +32,7 @@ rmdir "$BASE/"*"/downloads" 2> /dev/null || true rmdir "$BASE/"* 2> /dev/null || true [ -d "$BASE/$TODAY" ] || mkdir "$BASE/$TODAY" +[ -d "$BASE/$TODAY/downloads" ] || mkdir -m 1773 "$BASE/$TODAY/downloads" if ! [ -L "$TARGET" ] && [ -e "$TARGET" ]; then echo "$0: '$TARGET' already exists and is not a symlink." >&2 exit 1; |