From d542d39db9d9d9f7644c13768f1cf2041b1efdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Sun, 19 Apr 2015 10:16:00 +0200 Subject: Make sure that $SAVEPATH exists --- autodetect.sh | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3