diff options
-rw-r--r-- | scripts/utils | 6 | ||||
-rwxr-xr-x | templates/turris4x.run | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/scripts/utils b/scripts/utils index a689c12..2d549e6 100644 --- a/scripts/utils +++ b/scripts/utils @@ -11,8 +11,8 @@ templateid() { basename "$(readlink -f "$0")" | sed 's/\.run$//' } -TWORKSPACE="~/workspace/$(templateid)" -[ "$(jobid)" != "$(templateid)" ] || TWORKSPACE="~/workspace/notemplate" +TWORKSPACE="$HOME/workspace/$(templateid)" +[ "$(jobid)" != "$(templateid)" ] || TWORKSPACE="$HOME/Workspace/notemplate" ## Simple echo wrappers ######################################################### echo_stage() { @@ -82,7 +82,7 @@ git_fetch_t() { _git_fetch "$1" "$2" "$3" "$TWORKSPACE/git-mirror" } git_fetch_g() { - _git_fetch "$1" "$2" "$3" "~/workspace/git-mirror" + _git_fetch "$1" "$2" "$3" "$HOME/workspace/git-mirror" } # Clones one depth given repository with given branch/tag/hash diff --git a/templates/turris4x.run b/templates/turris4x.run index a916dc5..9321d90 100755 --- a/templates/turris4x.run +++ b/templates/turris4x.run @@ -22,7 +22,6 @@ else echo_stage "Prepare SDK" mkdir openwrt cd openwrt - echo "Template workspace: $TWORKSPACE/openwrt-git-mirror" GIT_MIRROR="$TWORKSPACE/openwrt-git-mirror" \ CCACHE_HOST_DIR="$TWORKSPACE/ccache-host" \ CCACHE_TARGET_DIR="$WORKSPACE/ccache-target" \ |