File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,22 +11,24 @@ cd `dirname $0`
1111
1212if [ $# -eq 0 ]; then
1313 echo " Install Translations for CodeIgniter System Messages"
14- echo " usage: $0 <version>"
14+ echo " usage: $0 <version/branch>"
15+ echo " eg: $0 3.0.0"
1516 echo " eg: $0 master"
1617 exit
1718fi
1819
1920version=" $1 "
21+ zip=" tmp-$$ .zip"
2022
21- curl -L -o translations. zip " https://github.com/bcit-ci/codeigniter3-translations /archive/$version .zip"
22- unzip translations. zip
23+ curl -L -o " $ zip" " https://github.com/$user / $repos /archive/$version .zip"
24+ unzip " $ zip"
2325
2426OS=` uname`
2527if [ " $OS " = " Darwin" ]; then
26- cp -rf " codeigniter3-translations -$version /language/" ../application/language/
28+ cp -rf " $repos -$version /language/" ../application/language/
2729else
28- cp -rf " codeigniter3-translations -$version /language/" -T ../application/language/
30+ cp -rf " $repos -$version /language/" -T ../application/language/
2931fi
3032
31- rm translations. zip
32- rm -rf " codeigniter3-translations -$version "
33+ rm " $ zip"
34+ rm -rf " $repos -$version "
You can’t perform that action at this time.
0 commit comments