Home Forums Software InstaDMG instaUp2Date.py question

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #375718
    AllanMarcus
    Participant

    Why isn’t the checksum generator just a simple bash script?

    /usr/bin/openssl sha1 | cut -d’ ‘ -f2

    Just curious.

    -Allan

    #375762
    larkost
    Participant

    Three reasons:

    1) The code does not just generate the checksum, but also the whole line you need to use.

    2) This way it uses the exact same code as is used inside InstaUp2Date, so there is never any doubt that both will get the same result for a given file/directory.

    3) For directories (not used so much right now, but they might make a comeback) I was not entirely sure that I wanted to checksum everything, so this allowed me to exclude things (like documentation). This code never actually got written. And directories were primary on my mind for #2.

    #375764
    AllanMarcus
    Participant

    Sounds good to me. I’ve been using the whole InstDMG product suite now for a couple of days and I’m very impressed. the checksum.py script [i]does[/i] come in [i]very[/i] handy.

    Thanks,

    Allan

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed