Add local variable
This commit is contained in:
parent
679cdf0813
commit
ec5a8badde
1 changed files with 2 additions and 1 deletions
3
build.sh
3
build.sh
|
@ -167,6 +167,7 @@ EOF
|
|||
task_patches() {
|
||||
if [ -d "$1" ]; then
|
||||
local SUB_STAGE_DIR=$(dirname "$1")
|
||||
local SUB_STAGE_NAME=$(basename "$SUB_STAGE_DIR")
|
||||
|
||||
log_begin "$1"
|
||||
pushd "$STAGE_WORK_DIR" > /dev/null
|
||||
|
@ -176,7 +177,7 @@ task_patches() {
|
|||
|
||||
export QUILT_PATCHES="$1"
|
||||
|
||||
SUB_STAGE_QUILT_PATCH_DIR="$(basename "$SUB_STAGE_DIR")-pc"
|
||||
SUB_STAGE_QUILT_PATCH_DIR="$SUB_STAGE_NAME-pc"
|
||||
mkdir -p "$SUB_STAGE_QUILT_PATCH_DIR"
|
||||
ln -snf "$SUB_STAGE_QUILT_PATCH_DIR" .pc
|
||||
|
||||
|
|
Reference in a new issue