Install requirement script returning true
Install requirement script returning true
- Subject: Install requirement script returning true
- From: "Andy Bell" <email@hidden>
- Date: Tue, 7 Oct 2008 11:46:55 +0200
Hi,
I am quite new to PackageMaker(3.0.2) and have run into a problem with a shell script always returning true.
The script is simple, and simply detects a running application:
#!/bin/sh
if ps auxc | grep -v grep | grep <proc name>; then
exit 1
else
exit 0
fi
I have in raw editing mode:
<installation-check script="pm_install_check();"/>
<script>function pm_install_check() {
if(!(system.run('/Users/andy/devel/qt/putplace/running.sh') == true)) {
my.result.title = 'Update';
my.result.message = 'You will need to close PutPlace before updating';
my.result.type = 'Fatal';
return false;
}
return true;
}
</script>
The question how can get my shell script to return 'false' when the application is not running?
Thanks in advance
Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden