|
1234567891011121314151617 |
- #!/bin/bash
- # This loops the pack-one script while the RUN file exists.
- # See pack-one for details.
- SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
- while [[ -f RUN ]]
- do
- "${SCRIPT_DIR}/pack-one"
- result="${?}"
- if [[ "${result}" -ne 0 ]]
- then
- date
- echo "packer exited with ${result}"
- exit "${result}"
- fi
- done
-
|