summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-04-19 10:16:00 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-04-19 10:16:00 +0200
commitd542d39db9d9d9f7644c13768f1cf2041b1efdc9 (patch)
tree9137395f8137b03a4f67b3a96bf346be82576c7d
parentCancel none command (diff)
downloaddisplay_autoset-d542d39db9d9d9f7644c13768f1cf2041b1efdc9.tar.xz
Make sure that $SAVEPATH exists
-rwxr-xr-xautodetect.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/autodetect.sh b/autodetect.sh
index 425f379..d05bfd4 100755
--- a/autodetect.sh
+++ b/autodetect.sh
@@ -88,6 +88,7 @@ EXT1_MAX="$(echo "$XRANDR" | get_resolution "$EXT1_NAME")"
EXT2_MAX="$(echo "$XRANDR" | get_resolution "$EXT2_NAME")"
## Save windows' positions before autodetection
+[ ! -d "$SAVEPATH" ] && mkdir -p "$SAVEPATH"
if [ -f "$SAVEPATH"/"$LAST_FILE" ]; then
"$PROG_PATH"/wpos.sh save "$(cat "$SAVEPATH"/"$LAST_FILE")"
fi