mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Protect shell variables with quotes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9030 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cc179cc2a2
commit
28438b1a4a
@ -1,3 +1,7 @@
|
||||
2004-10-01 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* scripts/convertDefault.sh: protect shell variables with quotes.
|
||||
|
||||
2004-09-24 José Matos <jamatos@lyx.org>
|
||||
|
||||
* layouts/docbook-book.layout
|
||||
|
@ -15,7 +15,7 @@
|
||||
# replacement in ~/.lyx/scripts
|
||||
|
||||
# converts an image from $1 to $2 format
|
||||
convert -depth 8 $1 $2 || {
|
||||
convert -depth 8 "$1" "$2" || {
|
||||
echo "$0 ERROR"
|
||||
echo "Execution of \"convert\" failed."
|
||||
exit 1
|
||||
@ -26,9 +26,9 @@ convert -depth 8 $1 $2 || {
|
||||
# delimit the two parts.
|
||||
# Note that Win32 filenames have the form 'C:\my\file',
|
||||
# so use everything from the first ':' to the end of the line.
|
||||
FILE=`echo $2 | cut -d ':' -f 2-`
|
||||
FILE=`echo "$2" | cut -d ':' -f 2-`
|
||||
|
||||
test -f $FILE || {
|
||||
test -f "$FILE" || {
|
||||
echo "$0 ERROR"
|
||||
echo "Unable to find file \"${FILE}\""
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user