X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/57738e26a2097d1c651d066384a37190928b4822..8edd65ebcf826f28af32cb130b59363a81399623:/bin/dot diff --git a/bin/dot b/bin/dot index 009f9aa..e2a83b3 100755 --- a/bin/dot +++ b/bin/dot @@ -47,6 +47,9 @@ EOF read -d '' EXTRA_HELP << EOF +dot list + display the contents of $TASKFILE + dot install SCRIPT updates ~/dot.HOSTNAME.yaml to run ~/dotfiles/SCRIPT.sh if it has not yet been run @@ -95,6 +98,11 @@ if [[ ! -f "$TASKFILE" ]]; then echo "$EMPTY_TASKFILE" >> $TASKFILE fi +if [ "$1" == "list" ]; then + cat $TASKFILE + exit 0 +fi + if [ "$1" == "setup" ]; then if [[ ! -f "$ANSIBLE" ]]; then mkdir -p "$ENVS" @@ -194,8 +202,8 @@ read -d '' RUN_INSTALL << EOF register: ret failed_when: > ("Error" in ret.stdout) or - (ret.stderr != '') or - (ret.rc != 10) + ("Error" in ret.stderr) or + (ret.rc != 0) when: not $2_installed.stat.exists - name: verify $2 is installed ansible.builtin.debug: