diff options
author | David Arnold <dar@xoe.solutions> | 2020-06-17 15:17:12 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-17 22:33:10 +0200 |
commit | 21b77f376df9e92be3c1d594e72cbbef03755f66 (patch) | |
tree | c8a6b18652c31f8b472a81c08c0caa86f6098f31 /contrib | |
parent | grimshot: Unary operator expected (diff) | |
download | sway-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
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/grimshot | 2 |
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 | ||
15 | getTargetDirectory() { | 15 | getTargetDirectory() { |
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 | } |