Skip to content

Commit 8271a6e

Browse files
committed
CI: Don't attempt to rename files if not required
1 parent 6c121a0 commit 8271a6e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/scripts/.package.zsh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,10 @@ ${_usage_host:-}"
258258
pushd ${project_root}
259259
cmake --build build_${target##*-} --config ${config} -t package ${cmake_args}
260260
261-
mv ${project_root}/release/*.deb ${project_root}/release/${output_name}.deb
262-
mv ${project_root}/release/*.ddeb ${project_root}/release/${output_name}.ddeb
261+
if [ ! -e ${project_root}/release/${output_name}.deb ]; then
262+
mv ${project_root}/release/*.deb ${project_root}/release/${output_name}.deb
263+
mv ${project_root}/release/*.ddeb ${project_root}/release/${output_name}.ddeb
264+
fi
263265
popd
264266
}
265267

.github/test

Whitespace-only changes.

0 commit comments

Comments
 (0)