summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrepoman/bin/checkrepo2
1 files changed, 1 insertions, 1 deletions
diff --git a/repoman/bin/checkrepo b/repoman/bin/checkrepo
index 3a7448a2..5b50dcda 100755
--- a/repoman/bin/checkrepo
+++ b/repoman/bin/checkrepo
@@ -98,7 +98,7 @@ EOT
# Create new JSON file.
if [ -z "$OUNAME" ]; then
cat << EOT | jq . > $INFOFILE
-{"directory":"$IMAGESDIR","images":[${IMAGENAME+$JSON}],"ous":[]}
+{"directory":"$IMAGESDIR","images":[${IMAGENAME:+$JSON}],"ous":[]}
EOT
else
cat << EOT | jq . > $INFOFILE