summaryrefslogtreecommitdiff
path: root/create-temp
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2017-08-16 20:50:45 +0200
committerPeter Palfrader <peter@palfrader.org>2017-08-16 20:50:49 +0200
commitdd17ab947c9f32c749f45fa483bce9d1edcf6a60 (patch)
tree7d83260ecf7064dcf6dc59208622283cd93b6880 /create-temp
parent912e74ffb9edeaa2830eb60587ee8d3a70bbce3b (diff)
Make xclip/xsel call configurable. Request by Dominik Kaaser
Diffstat (limited to 'create-temp')
-rwxr-xr-xcreate-temp4
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;