summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 22:14:12 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 22:14:12 (EDT)
commit007b17863cedc5f46f656a3b031ac36a271676f2 (patch)
treedd407eab8d6b777e44abd2c37a386b6557b01258
parent6e70d97a4476db5b90475b98eacf4354d9a753d2 (diff)
src/profile.sh: Shift function arguments
-rw-r--r--src/profile.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/profile.sh b/src/profile.sh
index f786149..13f28cd 100644
--- a/src/profile.sh
+++ b/src/profile.sh
@@ -33,6 +33,7 @@ register_profile()
is_profile()
{
local prof="${1}"
+ shift 1
case "${profiles}" in *" ${prof} "*) return 0;; *) return 1;; esac
@@ -42,6 +43,7 @@ is_profile()
profile_set()
{
local prof="${1}"
+ shift 1
if is_profile "${prof}"; then
profile="${prof}"
@@ -56,6 +58,7 @@ profile_set()
profile_detect()
{
local root="${1}"
+ shift 1
for prof in ${profiles}; do
if "prof_${prof}_detect_root" "${root}"; then