Skip to content

Commit e7a5ce1

Browse files
authored
Code cleanup
1 parent acd4558 commit e7a5ce1

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/functions/vhost/vhost-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ else
5353
fi
5454

5555
# PHP Service Check
56-
STATUS="$(systemctl is-active php${PHP_VER}-fpm)"
56+
STATUS="$(systemctl is-active "php${PHP_VER}-fpm")"
5757
if [ "${STATUS}" = "active" ]; then
5858
echo "PASSED: PHP ${PHP_VER} is running."
5959
else

scripts/install/enginescript-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ fi
229229
# Enabled Ubuntu Pro Apt Updates
230230
if [ "${UBUNTU_PRO_TOKEN}" != PLACEHOLDER ];
231231
then
232-
pro attach ${UBUNTU_PRO_TOKEN}
232+
pro attach "${UBUNTU_PRO_TOKEN}"
233233
fi
234234

235235
# Update & Upgrade

scripts/install/swap/swap-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
create_swap_file() {
2727
local swap_size=$1
2828
echo "Creating swap file of size ${swap_size}"
29-
fallocate -l ${swap_size} /swapfile || {
29+
fallocate -l "${swap_size}" /swapfile || {
3030
echo "Error: Failed to create swap file."
3131
}
3232
mkswap /swapfile || {

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121
# Check if the server is running on a 64-bit environment. If not, exit.
2222
BIT_TYPE=$(uname -m)
2323

24-
if [ ${BIT_TYPE} != 'x86_64' ];
24+
if [ "${BIT_TYPE}" != 'x86_64' ];
2525
then
2626
echo "EngineScript requires a 64-bit environment to run optimally."
2727
exit 1

0 commit comments

Comments
 (0)