Skip to content

Instantly share code, notes, and snippets.

@d4v3y0rk
Last active August 29, 2015 14:23
Show Gist options
  • Save d4v3y0rk/d0b22b69cfe434d54871 to your computer and use it in GitHub Desktop.
Save d4v3y0rk/d0b22b69cfe434d54871 to your computer and use it in GitHub Desktop.

Revisions

  1. d4v3y0rk revised this gist Jun 18, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions verify.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    HASH=`md5 $2 | awk '{print $4}'`
    if [ $1 == $HASH ]; then
    echo "hashes match";
    else echo "hashes are different";
    echo "hashes match" && exit 0;
    else echo "hashes are different" && exit 1;
    fi
  2. d4v3y0rk created this gist Jun 18, 2015.
    6 changes: 6 additions & 0 deletions verify.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash
    HASH=`md5 $2 | awk '{print $4}'`
    if [ $1 == $HASH ]; then
    echo "hashes match";
    else echo "hashes are different";
    fi