diff options
Diffstat (limited to 'create-temp')
-rwxr-xr-x | create-temp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/create-temp b/create-temp index 02b6064..f72b2fd 100755 --- a/create-temp +++ b/create-temp @@ -31,8 +31,8 @@ TARGET="$HOME/tmp" 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 2773 "$BASE/$TODAY/downloads" +mkdir -p "$BASE/$TODAY" +[ -d "$BASE/$TODAY/downloads" ] || install -d -m 2770 -g ww-download "$BASE/$TODAY/downloads" if ! [ -L "$TARGET" ] && [ -e "$TARGET" ]; then echo "$0: '$TARGET' already exists and is not a symlink." >&2 exit 1; |