Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 5.1
- ./test2.sh: line 16: 6: No such file or directory
- (msrbf)Nguyen-Thu-Trangs-MacBook-Pro:tmp truongminhsang$ cat
- defcon-master/ envs/ test.sh test1.sh test2.sh ufo2fdk-master/
- (msrbf)Nguyen-Thu-Trangs-MacBook-Pro:tmp truongminhsang$ cat test2.sh
- #! /usr/bin/env bash
- if [ -d "/usr/lib/postgresql/" ]; then
- for e in /usr/lib/postgresql/*; do
- if [ -d "$e" ]; then
- export PATH=$e/bin/:$PATH;
- echo $PATH
- break
- fi
- done
- fi
- if xcodebuild -version > /dev/null 2>&1; then
- version="$(xcodebuild -version | awk 'NR==1{print $2}')" ;
- echo $version
- if [ "$version" < "6" ]; then
- echo "Please upgrade Xcode"
- fi
- else
- echo "Please install Xcode"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement