Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: style consistency #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

# Проверить sudo
# Check sudo
if [ "$(id -u)" != "0" ]; then
echo "Please run script as root"
exit 1
Expand All @@ -12,7 +12,6 @@ author="ton-blockchain"
repo="mytonctrl"
branch="master"
srcdir="/usr/src/"
bindir="/usr/bin/"

# Get arguments
while getopts a:r:b: flag
Expand All @@ -24,11 +23,11 @@ do
esac
done

# Цвета
# Colors
COLOR='\033[92m'
ENDC='\033[0m'

# Установка компонентов python3
# Installation of python3 components
pip3 install fastcrc

# Go to work dir
Expand All @@ -41,6 +40,6 @@ git clone --recursive https://github.com/${author}/${repo}.git
cd ${repo} && git checkout ${branch} && git submodule update --init --recursive
systemctl restart mytoncore

# Конец
# End
echo -e "${COLOR}[1/1]${ENDC} MyTonCtrl components update completed"
exit 0