Skip to content

Commit 3f32d0f

Browse files
authored
Do not attempt renaming no-op (#2548) (#2549)
1 parent 587e2e4 commit 3f32d0f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.azure-pipelines-templates/install.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ steps:
55
cpack -V -G DEB
66
INITIAL_PKG=`ls *.deb`
77
GITHUB_PKG=${INITIAL_PKG//\~/_}
8-
mv $INITIAL_PKG $GITHUB_PKG
8+
if [[ "$INITIAL_PKG" != "$GITHUB_PKG" ]]; then
9+
mv $INITIAL_PKG $GITHUB_PKG
10+
fi
911
cp $GITHUB_PKG $(Build.ArtifactStagingDirectory)
1012
echo "##vso[task.setvariable variable=pkgname]$GITHUB_PKG"
1113
workingDirectory: build

0 commit comments

Comments
 (0)