Skip to content

Commit d2d9f2a

Browse files
Let build.sh work when sha1sum also returns the filename
It seems this script was written for an sha1sum command that only returns the sum, but my version also returns the filename. This should now work for both.
1 parent 7e8f822 commit d2d9f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ docker rm webc || true
77
if test -s /tmp/$desc.iso
88
then
99
dir=$(date --rfc-3339=date)/$desc
10-
sha1=$(sha1sum /tmp/$desc.iso)
10+
sha1=$(sha1sum /tmp/$desc.iso | cut -d' ' -f 1)
1111
mkdir -p $dir
1212
mv /tmp/$desc.iso $dir/$sha1.iso
1313
ln -sf $dir/$sha1.iso latest.iso

0 commit comments

Comments
 (0)