Hi,

I have used whc for some time and it is really a nice tool :-)

But today I tried to update the language and the script made a mess. I am running whc on a mac and these lines in init_template.sh throws an error:
#!/bin/sh

scriptsDir=`dirname $0`

srcDir=`readlink -f "$scriptsDir/../templatesrc"`

dstDir=`readlink -f "$scriptsDir/../whc_template"`

### ---

The variables are not set and the result is the script tries to delete anything in my Application folder! I had to reinstall several apps but I did not loose any data it seems.

Here is a short example of log from my terminal when I ran the script:
rm: /Applications/Image Capture.app/Contents/Resources/pl.lproj/InfoPlist.strings: Permission denied rm: /Applications/Image Capture.app/Contents/Resources/pl.lproj/Localizable.strings: Permission denied rm: /Applications/Image Capture.app/Contents/Resources/pl.lproj/MainMenu.nib: Permission denied rm: /Applications/Image Capture.app/Contents/Resources/pl.lproj/ScannerButtons.nib: Permission denied rm: /Applications/Image Capture.app/Contents/Resources/pl.lproj/TakePicture.nib: Permission denied rm: /Applications/Image Capture.app/Contents/Resources/pl.lproj: Permission denied

The command dirname is not recognized. Neither is read link.

If I set the variables manually the script works as expected.

--
Med venlig hilsen

Johannes Damsgaard-Bruhn
infoGeist
[email protected] • 31 16 99 00 • direkte 40 86 98 95 • www.infogeist.dk

--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to