[parser] Fixed merge conflict
This commit is contained in:
commit
b55b55ce7b
3 changed files with 13 additions and 5 deletions
|
@ -39,3 +39,7 @@
|
|||
* Added help menu for fsck, update and deploy commands
|
||||
* Fixed bug in nonexistent id test where non-standard rows would be tests on
|
||||
* Changed --git-dir option to not necessitate "=" sign when defining git directory
|
||||
|
||||
### v0.2.5
|
||||
* Fixed bug with command parser not parsing options correctly
|
||||
* Fixed bug where deploy would fail with errors that didn't exist
|
||||
|
|
|
@ -62,8 +62,9 @@ cmd_deploy() {
|
|||
[[ $? -ne 0 ]] && { _ansi up 2; echo -en '\033[K'; echo "[ ${COUNT} / ${#updateableidList[@]} ] ${imageid} could not be downloaded from server"; cat ${STDERR}; local ERR=true; continue; }
|
||||
fi
|
||||
deploy_cp "${GIT_DIR}" "${TARGET}" "${DB_FILE}" ${imageid} > ${STDERR} 2>&1
|
||||
[[ $? -ne 0 ]] && local CP_ERR=true
|
||||
[[ "${GIT_GET}" == "true" ]] && git -C "${GIT_DIR}" annex drop ${imageid}.flac >/dev/null 2>&1
|
||||
[[ $? -ne 0 ]] && { _ansi up 2; echo -en '\033[K'; echo "[ ${COUNT} / ${#updateableidList[@]} ] Copy of ${imageid} completed with errors"; cat ${STDERR}; local ERR=true; continue; }
|
||||
[[ "${CP_ERR}" == "true" ]] && { _ansi up 2; echo -en '\033[K'; echo "[ ${COUNT} / ${#updateableidList[@]} ] Copy of ${imageid} completed with errors"; cat ${STDERR}; local ERR=true; continue; }
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
GIT_DIR="./"
|
||||
|
||||
#Recursive argument parser
|
||||
while [[ -z "${1}" ]]; do
|
||||
while true; do
|
||||
case ${1} in
|
||||
--help)
|
||||
shift
|
||||
|
@ -25,7 +25,10 @@ while [[ -z "${1}" ]]; do
|
|||
--git-dir)
|
||||
shift
|
||||
GIT_DIR="${1}"
|
||||
shift
|
||||
;;
|
||||
|
||||
*)
|
||||
break
|
||||
;;
|
||||
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue