summaryrefslogtreecommitdiff
path: root/update_ungoogled_chromium.sh
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2021-08-28 08:45:58 -0700
committerlshprung <lshprung@yahoo.com>2021-08-28 08:45:58 -0700
commitf15f0499fa2c5ef9a9f9eee58820366de53b170e (patch)
treee5960e90127d930554a1d3590b8a9f042f2c96cc /update_ungoogled_chromium.sh
parentcc1dd9e92ccb9b157000436e6deff47610d07a71 (diff)
Fixed bug checking for existing ug symlink in PATH
Diffstat (limited to 'update_ungoogled_chromium.sh')
-rwxr-xr-xupdate_ungoogled_chromium.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_ungoogled_chromium.sh b/update_ungoogled_chromium.sh
index 6d3d10a..4443184 100755
--- a/update_ungoogled_chromium.sh
+++ b/update_ungoogled_chromium.sh
@@ -117,7 +117,7 @@ VERSION=$(echo "$FULL_INFO" | head -n 1 | cut -d ':' -f 2 | sed 's/^[ ]*//g' | g
URL=$(echo "$FULL_INFO" | sed -n "2p")
# Handle if LINK is in PATH by getting the absolute path with which
-if [ ! -e "$LINK" ] && [ ! -e $(which "$LINK") ]; then
+if [ ! -e "$LINK" ] && [ -e "$(which "$LINK")" ]; then
LINK=$(which "$LINK")
fi