Skip to content

Commit

Permalink
Add quotation marks around filename references
Browse files Browse the repository at this point in the history
Passing files with long, wordy paths & filenames was resulting in a variety of failures due to unescaped spaces. These quotation marks should keep everything where it belongs. Additionally Comskip was failing due to a param being passed in with double quotes around the whole thing instead of just its value. This has been resolved.
  • Loading branch information
gesa committed Mar 17, 2019
1 parent 7012024 commit ec50a04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comcut
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ case $key in
exit 1
;;
*)
if [ -z $infile ]; then
if [ -z "$infile" ]; then
infile=$1
if [ ! -f "$infile" ]; then
echo "Inputfile '$infile' doesn't exist. Please check."
exit 1
fi
else
if [ -z $outfile ]; then
if [ -z "$outfile" ]; then
outfile=$1
else
echo "Error: too many parameters. Inputfile and Outputfile already defined. Please check your command."
Expand Down Expand Up @@ -119,7 +119,7 @@ if [[ ! -z "$workdir" ]]; then
*/)
;;
*)
comskipoutput="--output=$workdir"
comskipoutput=--output="$workdir"
workdir="$workdir/"
;;
esac
Expand Down

0 comments on commit ec50a04

Please sign in to comment.