diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2015-04-19 10:16:00 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2015-04-19 10:16:00 +0200 |
commit | d542d39db9d9d9f7644c13768f1cf2041b1efdc9 (patch) | |
tree | 9137395f8137b03a4f67b3a96bf346be82576c7d | |
parent | Cancel none command (diff) | |
download | display_autoset-d542d39db9d9d9f7644c13768f1cf2041b1efdc9.tar.xz |
Make sure that $SAVEPATH exists
-rwxr-xr-x | autodetect.sh | 1 |
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 |