rather use array (use separate ARGV entries)
@@ -253,7 +253,10 @@ codename="$(awk -F ": " "\$1 == \"Codename\" { print \$2; exit }" "$outputDir/Re
} >&2
if [ ! -z "${OUT_FILE:-}" ]; then
- tar_extra_args="-f\"${OUT_FILE}\""
+ tar_extra_args=(
+ "-f"
+ "${OUT_FILE}"
+ )
fi
-tar --sparse -cC "$exportDir" . ${tar_extra_args:-}
+tar --sparse -cC "$exportDir" . ${tar_extra_args[*]:-}
