diff options
| -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 |
