mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
shfmt various shell scripts, evaluate grep -c
This commit is contained in:
parent
917e51071c
commit
55a1ad8ed1
@ -29,7 +29,7 @@ echo "npm build"
|
||||
npm install
|
||||
LAST_EXIT_CODE=$?
|
||||
if [ "$LAST_EXIT_CODE" -ne 0 ]; then
|
||||
>&2 echo "npm run build failed!"
|
||||
echo >&2 "npm run build failed!"
|
||||
exit $LAST_EXIT_CODE
|
||||
fi
|
||||
electron-packager . Chia --asar.unpack="**/daemon/**" --platform=darwin --icon=src/assets/img/Chia.icns --overwrite --app-bundle-id=net.chia.blockchain --appVersion=$CHIA_INSTALLER_VERSION
|
||||
|
12
install.sh
12
install.sh
@ -47,12 +47,9 @@ fi
|
||||
find_python() {
|
||||
set +e
|
||||
unset BEST_VERSION
|
||||
for V in 37 3.7 38 3.8 3
|
||||
do
|
||||
if which python$V > /dev/null
|
||||
then
|
||||
if [ x"$BEST_VERSION" = x ]
|
||||
then
|
||||
for V in 37 3.7 38 3.8 3; do
|
||||
if which python$V >/dev/null; then
|
||||
if [ x"$BEST_VERSION" = x ]; then
|
||||
BEST_VERSION=$V
|
||||
fi
|
||||
fi
|
||||
@ -61,8 +58,7 @@ find_python() {
|
||||
set -e
|
||||
}
|
||||
|
||||
if [ x"$INSTALL_PYTHON_VERSION" = x ]
|
||||
then
|
||||
if [ x"$INSTALL_PYTHON_VERSION" = x ]; then
|
||||
INSTALL_PYTHON_VERSION=$(find_python)
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user