OS X: Actually Make the signing script fail on failure
authorDaniel Molkentin <danimo@owncloud.com>
Thu, 16 Apr 2015 14:33:36 +0000 (16:33 +0200)
committerDaniel Molkentin <danimo@owncloud.com>
Thu, 16 Apr 2015 14:35:09 +0000 (16:35 +0200)
Addresses #3114

admin/osx/sign_app.sh

index 2a0994f5813ade12657aca771d639aa473f134b2..22f4dffd4d272317c887367f7e9972893e279296 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/bin/sh -xe
 
 [ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity>" && exit
 
@@ -7,6 +7,6 @@ identity="$2"
 
 codesign -s "$identity" --force --verbose=4 --deep "$src_app"
 
-# Just for our debug purposes:
+# Verify the signature
 spctl -a -t exec -vv $src_app
 codesign -dv $src_app