Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error handling #18

Closed
MarcusSmith opened this issue Mar 17, 2014 · 3 comments
Closed

Add error handling #18

MarcusSmith opened this issue Mar 17, 2014 · 3 comments

Comments

@MarcusSmith
Copy link
Owner

Add error handling to deal with external commands. (security cms, codesign, etc)

@MarcusSmith
Copy link
Owner Author

to get rid of stdout and only print stderr to variable:

err="$(function args 1>/dev/null)"

@MarcusSmith
Copy link
Owner Author

Use something similar to this? (from floatsign.sh: https://gist.github.com/Weptun/5406993)

function checkStatus {

if [ $? -ne 0 ];
then
echo "Had an Error, aborting!"
exit 1
fi
}

@MarcusSmith
Copy link
Owner Author

Make it easy to handle errors to pass back up to Resign Service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant