Skip to content

Commit

Permalink
shfmt -i 2 -ci -sr
Browse files Browse the repository at this point in the history
  • Loading branch information
IceCodeNew committed Oct 2, 2020
1 parent c1fb703 commit ccd02ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ install_v2ray() {
fi

# Install V2Ray configuration file to $JSON_PATH
# shellcheck disable=SC2153
# shellcheck disable=SC2153
if [[ -z "$JSONS_PATH" ]] && [[ ! -d "$JSON_PATH" ]]; then
install -d "$JSON_PATH"
echo "{}" > "${JSON_PATH}/config.json"
Expand Down Expand Up @@ -394,7 +394,7 @@ ExecStart=/usr/local/bin/v2ray -config ${JSON_PATH}/%i.json" > \
echo "${red}warning: ${green}The following are the actual parameters for the v2ray service startup."
echo "${red}warning: ${green}Please make sure the configuration file path is correctly set.${reset}"
systemd-analyze cat-config /etc/systemd/system/v2ray.service
# shellcheck disable=SC2154
# shellcheck disable=SC2154
if [[ x"${check_all_service_files:0:1}" = x'y' ]]; then
echo
echo
Expand Down Expand Up @@ -451,12 +451,12 @@ remove_v2ray() {
stop_v2ray
fi
if ! ("rm" -r '/usr/local/bin/v2ray' \
'/usr/local/bin/v2ctl' \
"$DAT_PATH" \
'/etc/systemd/system/v2ray.service' \
'/etc/systemd/system/[email protected]' \
'/etc/systemd/system/v2ray.service.d' \
'/etc/systemd/system/[email protected]'); then
'/usr/local/bin/v2ctl' \
"$DAT_PATH" \
'/etc/systemd/system/v2ray.service' \
'/etc/systemd/system/[email protected]' \
'/etc/systemd/system/v2ray.service.d' \
'/etc/systemd/system/[email protected]'); then
echo 'error: Failed to remove V2Ray.'
exit 1
else
Expand Down

0 comments on commit ccd02ac

Please sign in to comment.