diff options
| author | TitanSnow <[email protected]> | 2017-04-22 22:26:27 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-04-22 22:26:27 +0800 |
| commit | c333d8cc69389ab62b71b8e04c3d90b3ea156012 (patch) | |
| tree | 8259d25a8ace3ac15556f248403fd2d28bafffd7 /scripts | |
| parent | a68a5792d849973e12ff56c95859dcc41cacbde6 (diff) | |
add LOGO
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/get.ps1 | 14 | ||||
| -rwxr-xr-x | scripts/get.sh | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index ab9a8aeca..83062b5f2 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -16,6 +16,20 @@ Function writeErrorTip($msg){ Write-Host $msg -BackgroundColor Red -ForegroundColor White } +Function writeLogoLine($msg){ + Write-Host $msg -BackgroundColor White -ForegroundColor DarkBlue +} + +writeLogoLine ' _ ' +writeLogoLine ' | | _ ' +writeLogoLine '__ ___ ______| |/ /___ ' +writeLogoLine '\ \/ | \ / / _ | / / __ \ ' +writeLogoLine ' \ /| \/ / / | | | __/ ' +writeLogoLine ' / \| \__/\ \_| \ \ \ \__. ' +writeLogoLine '/_/\_|_| |_\___\_\|\_\__/ getter' +writeLogoLine ' ' +writeLogoLine '' + if($PSVersionTable.PSVersion.Major -lt 5){ writeErrorTip 'Sorry but PowerShell v5+ is required' throw 'PowerShell''s version too low' diff --git a/scripts/get.sh b/scripts/get.sh index df8507a34..3b3719398 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -3,6 +3,16 @@ # xmake getter # usage: bash <(curl -s <my location>) [branch] +# print a LOGO! +echo ' _' +echo ' | | _' +echo '__ ___ ______| |/ /___' +echo '\ \/ | \ / / _ | / / __ \' +echo ' \ /| \/ / / | | | __/' +echo ' / \| \__/\ \_| \ \ \ \__.' +echo '/_/\_|_| |_\___\_\|\_\__/ getter' +echo -e '\n' + brew --version >/dev/null 2>&1 && brew install --HEAD xmake && xmake --version && exit if [ 0 -ne $(id -u) ] then |
