make variables local

このコミットが含まれているのは:
belliash 2012-01-02 13:06:07 +01:00
コミット fa525ebe3e
1個のファイルの変更5行の追加5行の削除

ファイルの表示

@ -8,8 +8,8 @@
# Parameters: %directory%
#-------------------------------------------------------------------------------
function makeDirectory() {
OUTPUT=$(install -d "${@}" 2>&1)
RESULT=${?}
local OUTPUT=$(install -d "${@}" 2>&1)
local RESULT=${?}
if [[ ${RESULT} -ne 0 ]]; then
logOutput "${OUTPUT}"
fi
@ -21,10 +21,10 @@ function makeDirectory() {
# Parameters: %source% %target%
#-------------------------------------------------------------------------------
function makeLink() {
DESTDIR="${2%/*}"
local DESTDIR="${2%/*}"
[[ ! -d ${DESTDIR} ]] && makeDirectory "${DESTDIR}"
OUTPUT=$(ln -sfn "${1}" "${2}" 2>&1)
RESULT=${?}
local OUTPUT=$(ln -sfn "${1}" "${2}" 2>&1)
local RESULT=${?}
if [[ ${RESULT} -ne 0 ]]; then
logOutput "${OUTPUT}"
fi