Browse Source
Merge pull request #347 from thehapax/193-distinguish-os
detect os and print corresponding QR command
dev
Christian Rotzoll
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
15 additions and
1 deletions
-
home.admin/97addMobileWalletZap.sh
|
|
@ -77,7 +77,21 @@ else |
|
|
|
lndconnect --host=${dynDomain} |
|
|
|
fi |
|
|
|
|
|
|
|
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished." |
|
|
|
|
|
|
|
platform='unknown' |
|
|
|
unamestr=`uname` |
|
|
|
if [[ "$unamestr" == 'Linux' ]]; then |
|
|
|
platform='linux' |
|
|
|
elif [[ "$unamestr" == 'Darwin' ]]; then |
|
|
|
platform='Darwin' # mac OSX |
|
|
|
fi |
|
|
|
|
|
|
|
if [[ $platform == 'Linux' ]]; then |
|
|
|
echo "(To shrink QR code: CTRL-) Press ENTER when finished." |
|
|
|
elif [[ $platform == 'Darwin' ]]; then |
|
|
|
echo "(To shrink QR code: CMD-) Press ENTER when finished." |
|
|
|
fi |
|
|
|
|
|
|
|
read key |
|
|
|
|
|
|
|
clear |
|
|
|