Source

dotfiles / unpack_private.sh

Full commit
#!/bin/bash
cd "`dirname "$0"`"
source .pack_common.sh
source install_links.sh
rm private.tar.gz > /dev/null 2>&1

if [[ ! -f "private.tar.gz.gpg"  ]]
then
    echo "private.tar.gz.gpg not found :("
    exit 1
fi

files_changed

if [[ $FILES_CHANGED -eq 1 ]]
then
    echo "Oh no! local files have changed.  Please do something about that."
    end 3
fi

gpg -d private.tar.gz.gpg > private.tar.gz || end 4

tar -zxvf private.tar.gz || end 5

NO_REPLACE=1
for FILE in private/*
do
    install_link "$FILE"
done

end 0