another small fix

这个提交包含在:
belliash 2012-01-02 23:01:22 +01:00
父节点 ad243457e3
当前提交 d6677c0548
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -23,7 +23,7 @@ function download() {
awk '{printf("\b\b\b\b%4s", $2)}'
RESULT=${PIPESTATUS[0]}
echo -ne "\b\b\b\b"
if [[ ${RESULT} -ne 0 ]]; then
if [ ${RESULT} -ne 0 ]; then
logOutput "Unable to download ${URL}! Exit code: ${RESULT}"
echo -e "${COLOR_RED}${COLOR_BOLD}ERROR${COLOR_WHITE}${COLOR_NORMAL}"
else
@ -56,7 +56,7 @@ function makeLink() {
[[ ! -d ${DESTDIR} ]] && makeDirectory "${DESTDIR}"
OUTPUT=$(ln -sfn "${1}" "${2}" 2>&1)
RESULT=${?}
if [[ ${RESULT} -ne 0 ]]; then
if [ ${RESULT} -ne 0 ]; then
logOutput "${OUTPUT}"
fi
return ${RESULT}