xcunsign icon indicating copy to clipboard operation
xcunsign copied to clipboard

Modification needed in xcunsign script for macOS Sierra

Open kaustubhkabra opened this issue 8 years ago • 4 comments

If it helps anyone, I had to comment first 2 lines of xcunsign script - set -o errexit # Exit if any statement returns a non-true return value (non-zero). set -o nounset # Exit on use of an uninitialized variable xcunsign then ran fine on my macOS Sierra.

kaustubhkabra avatar Oct 12 '16 06:10 kaustubhkabra

@kaustubh-kabra thanks for the report. I have not yet had a chance to upgrade to Sierra myself, so this is good to know.

Those two lines are intended as a protection so that the script will stop running if any commands fail, which prevents the script from continuing if the system has gotten into an unexpected state.

Could you provide any information on at what point the script failed for you? Are there any errors that were logged while it was trying to execute? If you're able to post the output you received that would be a great help.

johntmcintosh avatar Oct 12 '16 13:10 johntmcintosh

It gave no error, simply exited. Hence, debugging became bit difficult. I suggest to modify script (and make it conditional) for macOS Sierra support.

kaustubhkabra avatar Oct 12 '16 15:10 kaustubhkabra

Thanks for the PR -- I've gone ahead and merged it. I'm going to keep this ticket open for now as a reminder for me to take a look at the underlying cause as soon as I'm able to get upgraded to Sierra, but hopefully this will help others from being blocked in the meantime.

johntmcintosh avatar Oct 13 '16 14:10 johntmcintosh

Sure, cheers !

kaustubhkabra avatar Oct 13 '16 14:10 kaustubhkabra