My bash skills need fine-tuning.
If I comment out line B (i.e. so I have a full path defined), the script runs fine. If I uncomment line B (i.e. I build the path up) I get an error. Why?
Here's the script (used to run Apple's instruments
tool):
#!/bin/bash
DEVICE="foo"
TEST="bar"
APP="etc"
PATH="/Users/snowcrash"
SCRIPT="/Users/snowcrash/scriptA.js" # Line A runs fine
SCRIPT="$PATH/scriptA.js" # Line B gives me 'instruments: command not found'
instruments -w "$DEVICE" -t "$TEST" "$APP" -e UIASCRIPT "$SCRIPT"