Get update utility in, add notes on it to README.

This commit is contained in:
David Dawes
2018-06-03 22:19:35 -07:00
parent d249bcbdb3
commit e5d6a4a607
4 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Usage: ./update-verus-agama.sh path/to/agama/directory."
echo "No arguments supplied, no updates applied."
exit 1
fi
PASSED=$1
if [ -d "${PASSED}" ] ; then
if [ -f "${PASSED}/komodod" ] ; then
cp komodod ${PASSED}
cp komodo-cli ${PASSED}
exit 0
else
echo "No komodod found in ${PASSED}"
echo "Copying komodod and komodo-cli anyway"
cp komodod ${PASSED}
cp komodo-cli ${PASSED}
exit 0
fi
else
echo "Pass the Agama-darwin-x64 directory on the command line."
echo "${PASSED} is not a valid directory.";
exit 1
fi