Skip to content

Commit

Permalink
replacechecksum: bash syntax precision
Browse files Browse the repository at this point in the history
  • Loading branch information
lordfolken authored Aug 20, 2023
1 parent 6e16fcd commit c54ff5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/replacechecksum
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ set -e

# Replaces checksum of specified file in checksums on destination repo
FILE="$1"
CHKSUM=$(md5sum $1 | cut -f1 -d" ")
CHKSUM=$(md5sum "${1}" | cut -f1 -d" ")
CHKSUMFILE="$2"
sed "s/.* $FILE/$CHKSUM $FILE/" -i $CHKSUMFILE
sed "s/.* ${FILE}/${CHKSUM} ${FILE}/" -i "0${CHKSUMFILE}"

0 comments on commit c54ff5b

Please sign in to comment.