Fix auto delete files when krun --dry-run
* Don't delete temp dir when krun --dry-run
* Remove the element with iteration
since slash removes prefixes
@@ -212,6 +212,13 @@ do
--dry-run)
cmdprefix="echo "
tempFiles=(${tempFiles[@]/$expanded_input_file})
+ # slash removes prefixes so build a new array with the files to keep
+ newArray=()
+ for value in "${tempFiles[@]}"; do
+ $value != $tempDir && newArray+=($value)
+ done
+ tempFiles="${newArray[@]}"
+ unset newArray
dryRun=true
;;
