diff options
-rwxr-xr-x | bin/populate | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/populate b/bin/populate index 17a8107..ff242cf 100755 --- a/bin/populate +++ b/bin/populate @@ -45,7 +45,7 @@ if test -z "$target_spec"; then fi if test "$fail" != true; then - exit 1 + exit 11 fi @@ -56,6 +56,11 @@ script=$(jq -e -r \ --arg origin_user "$origin_user" \ -f "$libdir/populate.jq") +if test -z "$script"; then + error 'no script produced' + exit 12 +fi + if test "$debug" = true; then echo "$script" |