File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 4545
4646 - name : Build base
4747 working-directory : ./base
48- run : .scripts/build.sh
48+ run : ../head/. scripts/build.sh
4949 - name : Build head
5050 working-directory : ./head
5151 run : .scripts/build.sh
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- cd " $( dirname " $0 " ) " /..
6-
75TARGET=" "
86if [ " $# " -ge 1 ]; then
97 TARGET=$1
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- cd " $( dirname " $0 " ) " /..
6-
75if [ " $# " -ne 1 ]; then
86 echo " 現在の状態と指定のcommit/branchとのdiffをローカルで取る便利スクリプト(手元で実行することを想定)"
97 echo " Usage: $0 [directory]"
@@ -33,7 +31,8 @@ git worktree add -f "$WORKTREE_DIR" "${TARGET}"
3331
3432echo " ==> Building at ${TARGET} ..."
3533# Run build.sh in the worktree directory
36- (cd " $WORKTREE_DIR " && .scripts/build.sh " $@ " )
34+ PWD=" $( pwd) "
35+ (cd " $WORKTREE_DIR " && " ${PWD} /.scripts/build.sh" " $@ " )
3736rm -rf .built.old
3837mv " $WORKTREE_DIR " /.built .built.old
3938
You can’t perform that action at this time.
0 commit comments