"Fossies" - the Fresh Open Source Software Archive

Member "redis-7.0.5/utils/releasetools/04_release_hash.sh" (21 Sep 2022, 475 Bytes) of package /linux/misc/redis-7.0.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 if [ $# != "1" ]
    3 then
    4     echo "Usage: ./utils/releasetools/04_release_hash.sh <version_tag>"
    5     exit 1
    6 fi
    7 
    8 SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum -a 256 | cut -f 1 -d' ')
    9 ENTRY="hash redis-${1}.tar.gz sha256 $SHA http://download.redis.io/releases/redis-${1}.tar.gz"
   10 echo $ENTRY >> ../redis-hashes/README
   11 echo "Press any key to commit, Ctrl-C to abort)."
   12 read yes
   13 (cd ../redis-hashes; git commit -a -m "${1} hash."; git push)