From ca81d4e098169fcee00663be872719cd33b62045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 9 May 2015 19:46:28 +0200 Subject: Fix exit value when symlink is already correct --- mga-bg-res/NEWS | 2 ++ mga-bg-res/mga-bg-res.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1