From 1f6f5ef57237f78ebaa0605c798d2bd25e80f8f1 Mon Sep 17 00:00:00 2001 From: Sofus Rose Date: Thu, 2 Nov 2017 13:53:52 -0400 Subject: [PATCH] Added set +f to top of script to ensure that globbing is enabled as per @michael088's bug --- convmlv.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/convmlv.sh b/convmlv.sh index 6fe0e5d..7b457ac 100755 --- a/convmlv.sh +++ b/convmlv.sh @@ -60,6 +60,9 @@ #~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #~ SOFTWARE. +## Ensure globbing is enabled. +set +f + #BASIC VARS VERSION="2.0.1" #Version string. INPUT_ARGS=$(echo "$@") #The original input argument string. @@ -1877,8 +1880,8 @@ for ARG in "${FILE_ARGS_ITER[@]}"; do #Go through FILE_ARGS_ITER array, copied f firstFrame=true fi - tmpOut=${7}/${range} #Each output will number from 0, so give each its own folder. - mkdir -p $tmpOut + tmpOut="${7}/${range}" #Each output will number from 0, so give each its own folder. + mkdir -p "$tmpOut" start=$(echo "$range" | cut -d'-' -f1) end=$(echo "$range" | cut -d'-' -f2) #Get start and end frames from the frame range