Browse Source

More hash updates

pull/525/head
Jared Ballou 9 years ago
parent
commit
70c2c81efd
  1. 2
      Insurgency/insserver
  2. 2
      functions/github_hash.sh

2
Insurgency/insserver

@ -135,7 +135,7 @@ fn_getgithubfile(){
fi fi
fn_colortext 32 "DONE" fn_colortext 32 "DONE"
fi fi
if [ "${exec}" ]; then if [ "${exec}" == "1" ]; then
source "${filepath}" source "${filepath}"
fi fi
} }

2
functions/github_hash.sh

@ -30,7 +30,7 @@ fn_get_github_manifest(){
if [ ! -e "${cachedir}" ]; then if [ ! -e "${cachedir}" ]; then
mkdir -p "${cachedir}" mkdir -p "${cachedir}"
fi fi
fn_getgithubfile "functions/jq-linux64" 1 fn_getgithubfile "functions/jq-linux64" binary
# Get latest commit from GitHub. Cache file for 60 minutes # Get latest commit from GitHub. Cache file for 60 minutes
if [ -e $lastcommit_file ]; then if [ -e $lastcommit_file ]; then
if [ $(($(date +%s) - $(date -r ${lastcommit_file} +%s))) -gt 3600 ]; then if [ $(($(date +%s) - $(date -r ${lastcommit_file} +%s))) -gt 3600 ]; then

Loading…
Cancel
Save