]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - bin/dot
Set expandtab
[dotfiles.git] / bin / dot
diff --git a/bin/dot b/bin/dot
index 009f9aa03d769ac5d2d5ed468473263379265d56..e2a83b382f052c6198e71b88af37e74c05778516 100755 (executable)
--- a/bin/dot
+++ b/bin/dot
@@ -47,6 +47,9 @@ EOF
 
 read -d '' EXTRA_HELP << 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
 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
 
        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"
 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
       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:
       when: not $2_installed.stat.exists
     - name: verify $2 is installed
       ansible.builtin.debug: