diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2015-05-09 19:46:28 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2015-05-09 19:46:28 +0200 |
commit | ca81d4e098169fcee00663be872719cd33b62045 (patch) | |
tree | 43ef8146ff6494a6a7fcfdea0477dcf6a2f53ae0 | |
parent | f814d9fe5012460638f2c02e0f2b7fda00670529 (diff) | |
download | theme-ca81d4e098169fcee00663be872719cd33b62045.tar theme-ca81d4e098169fcee00663be872719cd33b62045.tar.gz theme-ca81d4e098169fcee00663be872719cd33b62045.tar.bz2 theme-ca81d4e098169fcee00663be872719cd33b62045.tar.xz theme-ca81d4e098169fcee00663be872719cd33b62045.zip |
Fix exit value when symlink is already correct
-rw-r--r-- | mga-bg-res/NEWS | 2 | ||||
-rwxr-xr-x | mga-bg-res/mga-bg-res.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mga-bg-res/NEWS b/mga-bg-res/NEWS index b513b51..b011832 100644 --- a/mga-bg-res/NEWS +++ b/mga-bg-res/NEWS @@ -1,3 +1,5 @@ +- Fix exit value when symlink is already correct + Version 0.7 (2015-05-02): - Make mga-bg-res a systemd service - Uses monitor-probe to find the optimal resolution when X is not yet started diff --git a/mga-bg-res/mga-bg-res.sh b/mga-bg-res/mga-bg-res.sh index db937cb..cff01a8 100755 --- a/mga-bg-res/mga-bg-res.sh +++ b/mga-bg-res/mga-bg-res.sh @@ -17,7 +17,7 @@ fi # Check if the symlink is already good if [ "$curlink" = "$bgpath/$theme-$res.jpg" ]; then - exit 1 + exit 0 fi # Check if this is a supported resolution, if not, find the background with a similar aspect ratio |