include changelog in self_update
This commit is contained in:
parent
a37a734910
commit
3a8eabd579
@ -16,6 +16,9 @@ if git diff --name-only origin/$branch | grep -qs ".sh" ; then
|
|||||||
[[ "$i" == "--self-update" ]] && unset "args[$count]" && break
|
[[ "$i" == "--self-update" ]] && unset "args[$count]" && break
|
||||||
((count++))
|
((count++))
|
||||||
done
|
done
|
||||||
|
echo "Updating from:"
|
||||||
|
echo "$hs_version"
|
||||||
|
echo "Updating To:"
|
||||||
curl --silent "https://api.github.com/repos/HeavyBullets8/heavy_script/releases/latest" | jq -r .tag_name,.body
|
curl --silent "https://api.github.com/repos/HeavyBullets8/heavy_script/releases/latest" | jq -r .tag_name,.body
|
||||||
[[ -z ${args[*]} ]] && echo -e "No more arguments, exiting..\n\n" && exit
|
[[ -z ${args[*]} ]] && echo -e "No more arguments, exiting..\n\n" && exit
|
||||||
echo -e "Running the new version...\n\n"
|
echo -e "Running the new version...\n\n"
|
||||||
@ -24,8 +27,8 @@ if git diff --name-only origin/$branch | grep -qs ".sh" ; then
|
|||||||
# Now exit this old instance
|
# Now exit this old instance
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo -e "HeavyScript is already the latest version:\n\n"
|
echo "HeavyScript is already the latest version:"
|
||||||
echo "$hs_version"
|
echo -e "$hs_version\n\n"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
export -f self_update
|
export -f self_update
|
||||||
|
Loading…
Reference in New Issue
Block a user