summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/profile.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile.sh b/src/profile.sh
index e5a9240..05a25fe 100644
--- a/src/profile.sh
+++ b/src/profile.sh
@@ -34,7 +34,7 @@ is_profile()
{
local prof="${1}"
- [ "x${profiles# ${prof} }" != "x${profiles}" ]
+ case "${profiles}" in *" ${prof} "*) return 0;; *) return 1;; esac
return ${?}
}