Skip to content

Commit

Permalink
style: uniform the style of code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Oct 6, 2021
1 parent 4d5e358 commit 1dd0799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BUNDLE_PATH=${WORKING_DIR}/vendor/bundle

echo "Starting the Jekyll Deploy Action"

if [ -z "${TOKEN}" ]; then
if [[ -z "${TOKEN}" ]]; then
echo "Please set the TOKEN environment variable."
exit 1
fi
Expand Down Expand Up @@ -63,7 +63,7 @@ OS_NAME_FILE=${BUNDLE_PATH}/os-name
os_name=$(cat /etc/os-release | grep '^NAME=')
os_name=${os_name:6:-1}

if [ "$os_name" != "$(cat $OS_NAME_FILE 2>/dev/null)" ]; then
if [[ "$os_name" != "$(cat $OS_NAME_FILE 2>/dev/null)" ]]; then
echo "Cleaning up incompatible bundler cache"
rm -rf ${BUNDLE_PATH}
mkdir -p ${BUNDLE_PATH}
Expand All @@ -76,7 +76,7 @@ bundle config path ${WORKING_DIR}/vendor/bundle
bundle install

# Pre-handle Jekyll baseurl
if [ -n "${JEKYLL_BASEURL-}" ]; then
if [[ -n "${JEKYLL_BASEURL-}" ]]; then
JEKYLL_BASEURL="--baseurl ${JEKYLL_BASEURL}"
fi

Expand Down

0 comments on commit 1dd0799

Please sign in to comment.