Skip to content

Commit

Permalink
[B] Fix path in cron example
Browse files Browse the repository at this point in the history
  • Loading branch information
Clark Burns committed Nov 16, 2018
1 parent bf87af3 commit ddad4bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions add-config
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ CONFIG

echo "All done."
echo "If you haven't configured the cron job yet give this a go:"
current_path=$(cd current && pwd)
echo "0 3 * * * cd ${current_path} && ./donut"
echo "0 3 * * * cd $(pwd) && ./donut"
}
henchman_load() { local hm_url="https://raw.githubusercontent.com/castiron/henchman/${henchman_version}/henchman";local hm_local_file="${henchman_location}/henchman-${henchman_version}";echo -e "Attempting to fetch Henchman ${henchman_version}\n";if [ -e ${hm_local_file} ];then echo -e "Henchman ${henchman_version} is ready for action.";else if hash curl 2>/dev/null;then curl ${hm_url} -o ${hm_local_file};elif hash wget 2>/dev/null;then wget ${hm_url} -O ${hm_local_file};else echo "Error! curl or wget required to fetch Henchman.";fi;fi;source ${hm_local_file}; }
henchman_load $@

0 comments on commit ddad4bf

Please sign in to comment.