Formatting, only pull CL in curl
This commit is contained in:
parent
c4d5214350
commit
cd836ba537
@ -9,17 +9,17 @@ echo "🅂 🄴 🄻 🄵"
|
|||||||
echo "🅄 🄿 🄳 🄰 🅃 🄴"
|
echo "🅄 🄿 🄳 🄰 🅃 🄴"
|
||||||
if [[ "$hs_version" != "$latest_ver" ]] ; then
|
if [[ "$hs_version" != "$latest_ver" ]] ; then
|
||||||
echo "Found a new version of HeavyScript, updating myself..."
|
echo "Found a new version of HeavyScript, updating myself..."
|
||||||
git checkout "$latest_ver"
|
git checkout "$latest_ver" &>/dev/null
|
||||||
count=0
|
count=0
|
||||||
for i in "${args[@]}"
|
for i in "${args[@]}"
|
||||||
do
|
do
|
||||||
[[ "$i" == "--self-update" ]] && unset "args[$count]" && break
|
[[ "$i" == "--self-update" ]] && unset "args[$count]" && break
|
||||||
((count++))
|
((count++))
|
||||||
done
|
done
|
||||||
echo "Updating from:"
|
echo "Updating from: $hs_version"
|
||||||
echo "$hs_version"
|
echo "Updating To: $latest_ver"
|
||||||
echo "Updating To:"
|
echo "Changelog:"
|
||||||
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 .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"
|
||||||
sleep 5
|
sleep 5
|
||||||
|
Loading…
Reference in New Issue
Block a user