Skip to content

Commit 0f1e858

Browse files
committed
chore: introduce emojis in shell script
Signed-off-by: STRRL <[email protected]>
1 parent 2665116 commit 0f1e858

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

automated_deploy.sh

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ ARCH=$(uname -m)
1515
# Function to check if Docker is installed and running
1616
check_docker() {
1717
if ! command -v docker &> /dev/null; then
18-
echo "Docker is not installed. Please install Docker: https://docs.docker.com/engine/install/ and rerun this script."
18+
echo "Docker is not installed. Please install Docker: https://docs.docker.com/engine/install/ and rerun this script."
1919
exit 1
2020
fi
2121
if ! docker ps &> /dev/null; then
22-
echo "Docker is not running. Please start Docker and rerun this script."
22+
echo "Docker is not running. Please start Docker and rerun this script."
2323
exit 1
2424
fi
2525
}
@@ -33,7 +33,7 @@ check_docker_compose() {
3333
elif command -v docker &> /dev/null && docker compose version &> /dev/null; then
3434
COMPOSE_CMD="docker compose"
3535
else
36-
echo "Docker Compose is not installed. Please install Docker Compose: https://docs.docker.com/compose/install/ and rerun this script."
36+
echo "Docker Compose is not installed. Please install Docker Compose: https://docs.docker.com/compose/install/ and rerun this script."
3737
exit 1
3838
fi
3939
}
@@ -43,7 +43,7 @@ check_docker_compose
4343
# Function to install curl if it's not already installed
4444
install_curl() {
4545
if ! command -v curl &> /dev/null; then
46-
echo "curl is not installed. Please install curl and rerun this script."
46+
echo "curl is not installed. Please install curl and rerun this script."
4747
exit 1
4848
fi
4949
}
@@ -62,7 +62,7 @@ case $OS in
6262
FILE="${DEPLOYER_NAME}_Darwin_x86_64.tar.gz"
6363
;;
6464
*)
65-
echo "Unsupported architecture: $ARCH"
65+
echo "Unsupported architecture: $ARCH"
6666
exit 1
6767
;;
6868
esac
@@ -79,7 +79,7 @@ case $OS in
7979
FILE="${DEPLOYER_NAME}_Linux_x86_64.tar.gz"
8080
;;
8181
*)
82-
echo "Unsupported architecture: $ARCH"
82+
echo "Unsupported architecture: $ARCH"
8383
exit 1
8484
;;
8585
esac
@@ -96,28 +96,28 @@ case $OS in
9696
FILE="${DEPLOYER_NAME}_Windows_x86_64.zip"
9797
;;
9898
*)
99-
echo "Unsupported architecture: $ARCH"
99+
echo "Unsupported architecture: $ARCH"
100100
exit 1
101101
;;
102102
esac
103103
;;
104104
*)
105-
echo "Unsupported operating system: $OS"
105+
echo "Unsupported operating system: $OS"
106106
exit 1
107107
;;
108108
esac
109109

110110
# URL for the download
111111
URL="$DEPLOYER_RELEASE_URL/download/$DEPLOYER_VERSION/$FILE"
112112

113-
echo "Downloading $URL..."
113+
echo "⬇️ Downloading $URL..."
114114

115115
# Download the file
116116
curl -L $URL -o $FILE
117117

118118
# Check if the download was successful
119119
if [ $? -eq 0 ]; then
120-
echo "Download successful, extracting the file..."
120+
echo "📦 Download successful, extracting the file..."
121121

122122
# Extract the file
123123
case $FILE in
@@ -128,20 +128,20 @@ if [ $? -eq 0 ]; then
128128
unzip $FILE
129129
;;
130130
*)
131-
echo "Unsupported file format: $FILE"
131+
echo "Unsupported file format: $FILE"
132132
exit 1
133133
;;
134134
esac
135135

136136
# Check if the extraction was successful
137137
if [ $? -eq 0 ]; then
138-
echo "Extraction successful."
138+
echo "Extraction successful."
139139
else
140-
echo "Extraction failed."
140+
echo "Extraction failed."
141141
exit 1
142142
fi
143143
else
144-
echo "Download failed."
144+
echo "Download failed."
145145
exit 1
146146
fi
147147

@@ -150,33 +150,33 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
150150

151151
# Check if config.yaml exists in the script's directory and run Deployer if it does
152152
if [ -f "$SCRIPT_DIR/config.yaml" ]; then
153-
echo "config.yaml found in the script's directory, moving it to config folder..."
153+
echo "⚙️ config.yaml found in the script's directory, moving it to config folder..."
154154

155155
mkdir -p "$SCRIPT_DIR/config"
156156
mv "$SCRIPT_DIR/config.yaml" "$SCRIPT_DIR/config/config.yaml"
157-
echo "DO NOT DELETE/MOVE THE config FOLDER OR ITS CONTENTS!"
157+
echo "⚠️ DO NOT DELETE/MOVE THE config FOLDER OR ITS CONTENTS!"
158158

159159
export NODE_VERSION
160-
echo "running the deployer..."
160+
echo "🚀 Running the deployer..."
161161
"$SCRIPT_DIR/node-automated-deployer" > "$SCRIPT_DIR/docker-compose.yaml"
162162

163163
# Check if docker-compose.yaml was successfully created
164164
if [ -f "$SCRIPT_DIR/docker-compose.yaml" ]; then
165-
echo "docker-compose.yaml created, starting Docker Compose..."
165+
echo "ℹ️ docker-compose.yaml created, starting Docker Compose..."
166166
(cd "$SCRIPT_DIR" && $COMPOSE_CMD up -d)
167167

168168
# Check if Docker Compose started successfully
169169
if [ $? -eq 0 ]; then
170-
echo "Deployment process completed successfully."
170+
echo "Deployment process completed successfully."
171171
echo "🎉 Welcome to the RSS3 Network!"
172172
else
173-
echo "Failed to start Docker Compose."
173+
echo "Failed to start Docker Compose."
174174
exit 1
175175
fi
176176
else
177-
echo "Failed to create docker-compose.yaml."
177+
echo "Failed to create docker-compose.yaml."
178178
exit 1
179179
fi
180180
else
181-
echo "config.yaml not found, please create a config.yaml file or generate one at https://explorer.rss3.io."
182-
fi
181+
echo "⚠️ config.yaml not found, please create a config.yaml file or generate one at https://explorer.rss3.io."
182+
fi

0 commit comments

Comments
 (0)