aboutsummaryrefslogtreecommitdiffstats
path: root/fbgs
diff options
context:
space:
mode:
Diffstat (limited to 'fbgs')
-rwxr-xr-xfbgs4
1 files changed, 2 insertions, 2 deletions
diff --git a/fbgs b/fbgs
index bbb6444..7f4a9ac 100755
--- a/fbgs
+++ b/fbgs
@@ -1,8 +1,8 @@
#!/bin/bash
# tmp dir
-DIR="${TMPDIR-/var/tmp}/fbps-$$"
-mkdir -p $DIR || exit 1
+DIR="$(mktemp -dtp ${TMPDIR-/var/tmp} fbgs-XXXXXX)"
+test -d "$DIR" || exit 1
trap "rm -rf $DIR" EXIT
# parse options