From 2e72bd67f090471c715920226c8d87d3249a6706 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sun, 13 Dec 2015 12:32:00 +0530 Subject: [PATCH] localize install_template variables --- assets/runtime/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/runtime/functions b/assets/runtime/functions index 31b9137d..5ad02abb 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -27,9 +27,9 @@ exec_as_git() { # $2: source file # $3: destination location install_template() { - USR=${1} - SRC=${2} - DEST=${3} + local USR=${1} + local SRC=${2} + local DEST=${3} if [[ -f ${USERCONF_TEMPLATES_DIR}/${SRC} ]]; then sudo -HEu ${USR} cp ${USERCONF_TEMPLATES_DIR}/${SRC} ${DEST} elif [[ -f ${SYSCONF_TEMPLATES_DIR}/${SRC} ]]; then