Skip to content

Commit 27cae22

Browse files
committed
2021-09-09 15:01:32
1 parent 0a11974 commit 27cae22

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ get() {
3737
}
3838

3939
build() {
40-
cd "${d_src}/_build" || exit 1
41-
${debuild} -us -uc -i -d -S && cd .. || exit 1
40+
pushd "${d_src}/_build" || exit 1
41+
${debuild} -us -uc -i -d -S && popd || exit 1
4242
}
4343

4444
move() {
4545
for i in _service README.md LICENSE *.tar.* *.dsc *.build *.buildinfo *.changes; do
4646
${rm} -fv "${d_dst}/${i}"
47-
${mv} -fv "${i}" "${d_dst}" || exit 1
47+
${mv} -fv "${d_src}/${i}" "${d_dst}/" || exit 1
4848
done
4949
}
5050

5151
push() {
5252
ts="$( _timestamp )"
5353

54-
cd "${d_dst}" || exit 1
54+
pushd "${d_dst}/" || exit 1
5555
${git} add . && ${git} commit -a -m "BUILD: ${ts}" && ${git} push
5656
}
5757

0 commit comments

Comments
 (0)