From 007b17863cedc5f46f656a3b031ac36a271676f2 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 22:14:12 -0400 Subject: src/profile.sh: Shift function arguments --- 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 -- cgit v0.9.1