site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914) Hi, This is my code: ______ #!/bin/sh # postflight VERSION_NEW="0.5.002" echo $VERSION THX _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I tried to create a bash file that should be able to read out an application version number which is located in a plist and compare it to a different version number. Both version numbers have the same appearance: x.y.zzz VERSION=defaults read "/Applications/My.app/Contents/Info" "CFBundleShortVersionString" if[$VERSION_NEW -lt $VERSION]; then echo "Version is bigger" else echo "Version is smaler" fi ______ I know there must be something wrong with the if-clause because I try to compare two Strings , but I have no clue how to treat a version number correctly. Also I get a strange error message (read: `/Applications/Maschine.app/Contents/Info': not a valid identifier). What is wrong there? This email sent to site_archiver@lists.apple.com