summaryrefslogtreecommitdiffstats
path: root/autodetect.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autodetect.sh')
-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