1.3b Directory Issues, No such file or directory
InstaDMG 1.3b attempts to use relative directories to set up the various important folders:
[code]# Put naked Apple pkg updates in here. Prefix a number to order them.
UPDATE_FOLDER=./AppleUpdates
# Put naked custom pkg installers here. Prefix a number to order them.
CUSTOM_FOLDER=./CustomPKG[/code]
Unfortunately, this doesn't work since "." is the working directory when the script is called. Consider a script "bar.sh", which is:
[code]#!/bin/bash
pwd[/code]
The following is possible:
[code]pfergus:~ pfergus$ cd
pfergus:~ pfergus$ pwd
/Users/pfergus
pfergus:~ pfergus$ mkdir foo
pfergus:~ pfergus$ pico foo/bar.sh
pfergus:~ pfergus$ chmod +x foo/bar.sh
pfergus:~ pfergus$ foo/bar.sh
/Users/pfergus[/code]
cd'ing into the "Instadmg" directory and executing the script from there appears to work.
Thanks,
- Patrick