nimblehq / VIPER-Templates

Xcode files templates for various parts of VIPER module
5 stars 1 forks source link

Install.sh will fail on wrong folder name #24

Closed blyscuit closed 3 years ago

blyscuit commented 3 years ago

Right now the installation says

git clone https://github.com/nimblehq/VIPER-Templates.git && VIPER-Templates/install.sh

this is possible because the result cloned folder name is VIPER-Templates

however; if user download or clone with other method that resulting in folder with incorrect name, the install.sh script will fail.

Proposal

replace install.sh line

cp -R VIPER-Templates-master/Templates/* ~/Library/Developer/Xcode/Templates/VIPER-Templates

to

cp -R Templates/* ~/Library/Developer/Xcode/Templates/VIPER-Templates

and change Readme.md Installation from

git clone https://github.com/nimblehq/VIPER-Templates.git && VIPER-Templates/install.sh

to

git clone https://github.com/nimblehq/VIPER-Templates.git && cd VIPER-Templates && install.sh