aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar David Arnold <dar@xoe.solutions>2020-06-17 15:17:12 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-17 22:33:10 +0200
commit21b77f376df9e92be3c1d594e72cbbef03755f66 (patch)
treec8a6b18652c31f8b472a81c08c0caa86f6098f31
parentgrimshot: Unary operator expected (diff)
downloadsway-21b77f376df9e92be3c1d594e72cbbef03755f66.tar.gz
sway-21b77f376df9e92be3c1d594e72cbbef03755f66.tar.zst
sway-21b77f376df9e92be3c1d594e72cbbef03755f66.zip
grimshot: fix POSIX compliance
source is not POSIX compliant, '.' is. https://stackoverflow.com/a/11588629
-rwxr-xr-xcontrib/grimshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/grimshot b/contrib/grimshot
index 8fc8741b..4ee8d902 100755
--- a/contrib/grimshot
+++ b/contrib/grimshot
@@ -14,7 +14,7 @@
14 14
15getTargetDirectory() { 15getTargetDirectory() {
16 test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && \ 16 test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && \
17 source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs 17 . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
18 18
19 echo ${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}} 19 echo ${XDG_SCREENSHOTS_DIR:-${XDG_PICTURES_DIR:-$HOME}}
20} 20}