Source

dotfiles / .pack_common.sh

Full commit
function end {
    rm private.tar.gz > /dev/null 2>&1
    exit $1
}

function files_changed {
    FILES_CHANGED=0
    cd private || return
    for FILE in *
    do
        if [[ "$FILE" -nt ".$FILE-timestamp" ]]
        then
            FILES_CHANGED=1
            echo "$FILE has been changed"
        fi
    done
    cd ..
}

if [[ ! `which gpg` ]]
then
    echo "Could not find GPG!"
    exit 1
fi