1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Fix the path contains spaces lead to tool script failure (#117)

This commit is contained in:
Cotes Chung
2020-08-30 14:49:36 +08:00
parent 31656e8cda
commit 2d7df50774
5 changed files with 7 additions and 6 deletions

View File

@@ -15,7 +15,7 @@
set -eu
WORK_DIR="$(dirname $(dirname $(realpath "$0")))"
WORK_DIR="$(dirname "$(dirname "$(realpath "$0")")")"
URL_FILE="${WORK_DIR}/_config.yml"
PV_CACHE="${WORK_DIR}/assets/js/data/pageviews.json"
@@ -23,4 +23,4 @@ PROXY_URL="$(grep "proxy_endpoint:" "$URL_FILE" | sed "s/.*: '//g;s/'.*//")"
wget "$PROXY_URL" -O "$PV_CACHE"
echo "ls $PV_CACHE"
echo "ls $PV_CACHE"