Skip to content

Commit 511e14b

Browse files
Fix run cpack script
1 parent d75def8 commit 511e14b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.run-cpack

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ declare -a StringArray=("ruckig" "tesseract_command_language" "tesseract_example
2525
# Iterate the packages using for loop
2626
for val in ${StringArray[@]}; do
2727
if [ -d "$build_dir/$val" ] && [ -f "$build_dir/$val/CPackConfig.cmake" ]; then
28-
cd $build_dir/$val
28+
pushd $build_dir/$val
2929
cpack --config CPackConfig.cmake
3030
cp ./*.$artifact_ext $artifact_dir
3131
cp ./*.tar.xz $artifact_dir
32+
popd
3233
fi
3334
done

0 commit comments

Comments
 (0)