cl.install: git reset when version is given

This commit is contained in:
openoms 2021-09-28 10:40:00 +01:00
parent 6b34ce9e3a
commit ce6af54dc7

View File

@ -104,6 +104,7 @@ if [ "$1" = on ]||[ "$1" = update ]||[ "$1" = testPR ];then
if [ $# -gt 1 ];then
CLVERSION=$2
echo "# Installing the version $CLVERSION"
sudo -u bitcoin git reset --hard $CLVERSION
else
echo "# Updating to the latest commit in:"
echo "# https://github.com/ElementsProject/lightning"