Add command line options to yadm.sh

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2022-04-14 13:56:26 +01:00
parent 4839ce5a71
commit 4832595188
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -1,6 +1,12 @@
#!/bin/bash
VERSION="3.2.1"
if [ "$1" == "" ]; then
echo "usage: ./yadm.sh [VERSION]"
echo "Please specify a version"
exit 1
fi
VERSION=$1
curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/$VERSION/yadm
chmod a+x /usr/local/bin/yadm