Closed edrex closed 6 years ago
❯ mkdir github-test && cd github-test ❯ echo "ok github ./dotfiles edrex/dotfiles" > github.sh ❯ bork compile github.sh > github.c.sh ❯ bash -x github.c.sh +++ getDir githubc.sh +++ fname=githubc.sh +++ '[' -h githubc.sh ']' +++++ dirname githubc.sh ++++ cd . ++++ pwd -P +++ echo /Users/eric/test ++ cd /Users/eric/test/.. ++ pwd -P + BORK_SOURCE_DIR=/Users/eric + BORK_SCRIPT_DIR=/Users/eric/test + BORK_WORKING_DIR=/Users/eric/test + operation=satisfy + case "$1" in + STATUS_OK=0 + STATUS_FAILED=1 + STATUS_MISSING=10 + STATUS_OUTDATED=11 + STATUS_PARTIAL=12 + STATUS_MISMATCH_UPGRADE=13 + STATUS_MISMATCH_CLOBBER=14 + STATUS_CONFLICT_UPGRADE=20 + STATUS_CONFLICT_CLOBBER=21 + STATUS_CONFLICT_HALT=25 + STATUS_BAD_ARGUMENTS=30 + STATUS_FAILED_ARGUMENTS=31 + STATUS_FAILED_ARGUMENT_PRECONDITION=32 + STATUS_FAILED_PRECONDITION=33 + STATUS_UNSUPPORTED_PLATFORM=34 ++ uname -s + platform=Darwin + baking_platform= + bork_performed_install=0 + bork_performed_upgrade=0 + bork_performed_error=0 + bork_any_updated=0 + bag init include_directories + action=init + varname=include_directories + shift 2 + '[' init '!=' init ']' + case "$action" in + eval 'include_directories=( )' ++ include_directories=() + bag push include_directories /Users/eric/test + action=push + varname=include_directories + shift 2 + '[' push '!=' init ']' ++ eval 'echo ${#include_directories[*]}' +++ echo 0 + length=0 + last=-1 + case "$action" in + eval 'include_directories[0]="/Users/eric/test"' ++ include_directories[0]=/Users/eric/test + _bork_check_failed=0 + _checked_len=0 + bag init bork_assertion_types + action=init + varname=bork_assertion_types + shift 2 + '[' init '!=' init ']' + case "$action" in + eval 'bork_assertion_types=( )' ++ bork_assertion_types=() + ok github ./dotfiles edrex/dotfiles + assertion=github + shift + _bork_check_failed=0 + _changes_reset + bork_performed_install=0 + bork_performed_upgrade=0 + bork_performed_error=0 + last_change_type= ++ _lookup_type github ++ assertion=github ++ is_compiled ++ return 0 ++ echo type_github ++ return + fn=type_github + '[' -z type_github ']' + argstr='./dotfiles edrex/dotfiles' + quoted_argstr= + '[' -n ./dotfiles ']' ++ echo ' "./dotfiles"' + quoted_argstr=' "./dotfiles"' + shift + '[' -n edrex/dotfiles ']' ++ echo ' "./dotfiles" "edrex/dotfiles"' + quoted_argstr=' "./dotfiles" "edrex/dotfiles"' + shift + '[' -n '' ']' + case $operation in + _checking checking github ./dotfiles edrex/dotfiles + type=checking + shift + check_str='checking: github ./dotfiles edrex/dotfiles' + _checked_len=42 ' echo -n 'checking: github ./dotfiles edrex/dotfiles +++ _source_runner type_githubrex/dotfiles +++ is_compiled +++ return 0 +++ echo type_github ++ eval 'type_github status "./dotfiles" "edrex/dotfiles"' +++ type_github status ./dotfiles edrex/dotfiles +++ '[' -z '' ']' +++ git_call='. /Users/eric/types/git.sh' +++ is_compiled +++ return 0 +++ git_call=git +++ action=status +++ repo=./dotfiles +++ shift 2 +++ case $action in +++ next=edrex/dotfiles +++ target_dir= +++ '[' -n edrex/dotfiles ']' +++ '[' e '!=' - ']' +++ target_dir=./dotfiles +++ repo=edrex/dotfiles +++ shift +++ args= ++++ arguments get ssh ++++ op=get ++++ shift ++++ case $op in ++++ key=ssh ++++ shift ++++ value= ++++ '[' -n '' ']' ++++ '[' -n ']' ++++ echo '' +++ '[' -n '' ']' ++++ echo edrex/dotfiles +++ url=https://github.com/edrex/dotfiles.git +++ eval 'git status ./dotfiles https://github.com/edrex/dotfiles.git ' ++++ git status ./dotfiles https://github.com/edrex/dotfiles.git fatal: Not a git repository (or any of the parent directories): .git + status_output= + status=128 ++ _status_for 128 ++ case "$1" in ++ echo 'unknown status: 128' + _checked 'unknown status: 128: github ./dotfiles edrex/dotfiles' + report='unknown status: 128: github ./dotfiles edrex/dotfiles' + (( pad=42 - 53 )) + i=1 + '[' 1 -le -11 ']' + echo 'unknown status: 128: github ./dotfiles edrex/dotfiles' unknown status: 128: github ./dotfiles edrex/dotfiles + case $status in + echo '-- sorry, bork doesn'\''t handle this response yet' -- sorry, bork doesn't handle this response yet + echo '' + did_update + did_install + '[' 0 -eq 1 ']' + return 1 + did_upgrade + '[' 0 -eq 1 ']' + return 1 + return 1
The output is the same whether or not the dir exists.
The basic git type works fine compiled.
git
The output is the same whether or not the dir exists.
The basic
git
type works fine compiled.