Enable wait mode.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 30 Oct 2005 02:12:05 +0000 (02:12 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 30 Oct 2005 02:12:05 +0000 (02:12 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@428 959494ce-11ee-0310-bf91-de5d638817bd

autodlctl

index 1215c65..6bac751 100755 (executable)
--- a/autodlctl
+++ b/autodlctl
@@ -38,6 +38,9 @@ function getnext
     fi
     infofile="$d/.autodl/rtinfo"
     args=(-e "$fsexpr" -t "$tag $curep" -I "$infofile")
     fi
     infofile="$d/.autodl/rtinfo"
     args=(-e "$fsexpr" -t "$tag $curep" -I "$infofile")
+    if [ -e "$d/.autodl/wait" ]; then
+       args=("${args[@]}" -w)
+    fi
     if [ -r "$d/.autodl/uarg" ]; then
        uarg="`cat "$d/.autodl/uarg"`"
     elif [ -e "$d/.autodl/autouarg" ]; then
     if [ -r "$d/.autodl/uarg" ]; then
        uarg="`cat "$d/.autodl/uarg"`"
     elif [ -e "$d/.autodl/autouarg" ]; then