All pastes #397549 Raw Edit

script error

public shellscript v1 · immutable
·published 2007-03-16 15:57 UTC
rendered paste body
#!/bin/shmedfn=$2"_med.jpg"smlfn=$2''_sml.jpg''echo $1echo $medfnecho $smlfncp -f $1 $medfncp -f $1 $smlfnmogrify -resize 300 $medfnmogrify -resize 150 $smlfn+++++++++++++++++++ end of scripterror message is as follows:bryan@pundit:~/its/logos$ ./resize.sh "Citizens logo.jpg" testingCitizens logo.jpgtesting_med.jpgtesting_sml.jpg@@cp: target `testing_med.jpg' is not a directory  <==== Why is this happening?@@cp: target `testing_sml.jpg' is not a directorymogrify: unable to open image `testing_med.jpg': No such file or directory.mogrify: unable to open image `testing_sml.jpg': No such file or directory.