Skip to content

Commit 3062fe3

Browse files
authored
fix: should go back after cd (#2)
1 parent 0a39402 commit 3062fe3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patch/patch.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ apply_patch() {
2222
ver="$4"
2323

2424
dir="$root/bundle/$repo-$ver"
25-
cd "$dir" || failed_to_cd "$dir"
25+
pushd "$dir" || failed_to_cd "$dir"
2626
for patch in "$patch_dir/$repo"-*.patch; do
2727
echo "Start to patch $patch to $dir..."
2828
patch -p0 --verbose < "$patch"
2929
done
30+
popd
3031
}
3132

3233
if [[ $# != 1 ]]; then

0 commit comments

Comments
 (0)