Skip to content

Commit 224bd4b

Browse files
committed
Merge branch 'stable'
2 parents 20e66d4 + de337b4 commit 224bd4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nexus-upload.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ for artifact in $@; do
1919
rm -f $artifact.asc
2020
gpg --homedir $GNUPG_PATH/.gnupg --local-user $SIGNING_KEY --no-tty --armor --detach-sign --output $artifact.asc $artifact
2121
for ext in '' .asc ; do
22-
curl --upload-file $artifact$ext $NEXUS_ROOT/$artifact$ext
22+
curl --upload-file $artifact$ext $NEXUS_ROOT/$(basename "$artifact")$ext
2323
for sum in md5 sha1 ; do
2424
${sum}sum $artifact$ext | (read a rest ; echo -n "$a") >$artifact$ext.$sum
25-
curl --upload-file $artifact$ext.$sum $NEXUS_ROOT/$artifact$ext.$sum
25+
curl --upload-file $artifact$ext.$sum $NEXUS_ROOT/$(basename "$artifact")$ext.$sum
2626
done
2727
done
2828
done

0 commit comments

Comments
 (0)