summaryrefslogtreecommitdiffstats
path: root/src/profile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile.sh')
-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 ${?}
}