Fix the path contains spaces lead to tool script failure (#117)
This commit is contained in:
parent
31656e8cda
commit
2d7df50774
5 changed files with 7 additions and 6 deletions
|
@ -15,7 +15,7 @@ if [[ ! -f "$1" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
src_dir="$(dirname $(realpath "$1"))"
|
src_dir="$(dirname "$(realpath "$1")")"
|
||||||
|
|
||||||
dir_prefix="$(realpath "$2")/"
|
dir_prefix="$(realpath "$2")/"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ set -eu
|
||||||
|
|
||||||
CMD="JEKYLL_ENV=production bundle exec jekyll b"
|
CMD="JEKYLL_ENV=production bundle exec jekyll b"
|
||||||
|
|
||||||
WORK_DIR="$(dirname $(dirname $(realpath "$0")))"
|
WORK_DIR="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||||
|
|
||||||
CONTAINER="${WORK_DIR}/.container"
|
CONTAINER="${WORK_DIR}/.container"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,8 @@ CATEGORIES=false
|
||||||
TAGS=false
|
TAGS=false
|
||||||
LASTMOD=false
|
LASTMOD=false
|
||||||
|
|
||||||
WORK_DIR="$(dirname $(dirname $(realpath "$0")))"
|
WORK_DIR="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||||
|
|
||||||
|
|
||||||
check_status() {
|
check_status() {
|
||||||
local _change=$(git status . -s)
|
local _change=$(git status . -s)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
WORK_DIR="$(dirname $(dirname $(realpath "$0")))"
|
WORK_DIR="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||||
URL_FILE="${WORK_DIR}/_config.yml"
|
URL_FILE="${WORK_DIR}/_config.yml"
|
||||||
PV_CACHE="${WORK_DIR}/assets/js/data/pageviews.json"
|
PV_CACHE="${WORK_DIR}/assets/js/data/pageviews.json"
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
WORK_DIR=$(dirname $(dirname $(realpath "$0")))
|
WORK_DIR="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||||
|
|
||||||
CONTAINER=.container
|
CONTAINER=.container
|
||||||
SYNC_TOOL=_scripts/sh/sync_monitor.sh
|
SYNC_TOOL=_scripts/sh/sync_monitor.sh
|
||||||
|
|
Loading…
Reference in a new issue