RIBs icon indicating copy to clipboard operation
RIBs copied to clipboard

[ios/tooling] the install-xcode-template fails if file permissions aren't exactly as expected

Open AndrewSB opened this issue 5 years ago • 2 comments

It looks like the bash script has no error handling, so when mkdir fails the script isn't able to copy over the templates. Due to the lack of error handling the script still thinks it succeeded

👋 ./ios/tooling/install-xcode-template.sh                                                               (🙈) ~/Developer/ribs💻 
==> Copying up RIBs Xcode file templates...
mkdir: /Applications/xcode_10_fb.app/Templates/File Templates/RIBs: Permission denied
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
==> ... success!
==> RIBs have been set up. In Xcode, select 'New File...' to use RIBs templates.

AndrewSB avatar Oct 30 '18 15:10 AndrewSB

Is this still valid based on #292

sbarow avatar Oct 31 '18 09:10 sbarow

I'll double check later this week -- it may have been some confusion within #292, but I'm not sure right now

AndrewSB avatar Oct 31 '18 16:10 AndrewSB