Skip to content

Commit

Permalink
Merge pull request #8520 from jelovac/master
Browse files Browse the repository at this point in the history
data: fix shellcheck warnings in snapd.sh.in
  • Loading branch information
stolowski committed Jun 3, 2020
2 parents da4986d + 17955fc commit 9095076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/env/snapd.sh.in
Expand Up @@ -2,7 +2,7 @@

# Expand $PATH to include the directory where snappy applications go.
snap_bin_path="@SNAP_MOUNT_DIR@/bin"
if [ -n "${PATH##*${snap_bin_path}}" -a -n "${PATH##*${snap_bin_path}:*}" ]; then
if [ -n "${PATH##*${snap_bin_path}}" ] && [ -n "${PATH##*${snap_bin_path}:*}" ]; then
export PATH=$PATH:${snap_bin_path}
fi

Expand All @@ -16,7 +16,7 @@ fi
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for
# snappy applications' desktop files.
snap_xdg_path="/var/lib/snapd/desktop"
if [ -n "${XDG_DATA_DIRS##*${snap_xdg_path}}" -a -n "${XDG_DATA_DIRS##*${snap_xdg_path}:*}" ]; then
if [ -n "${XDG_DATA_DIRS##*${snap_xdg_path}}" ] && [ -n "${XDG_DATA_DIRS##*${snap_xdg_path}:*}" ]; then
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:${snap_xdg_path}"
fi

0 comments on commit 9095076

Please sign in to comment.