self updater

This commit is contained in:
2022-04-29 12:44:02 +03:00
parent 7417be1b5c
commit b65c44090f

1
bake
View File

@@ -104,6 +104,7 @@ _source_bakefile() {
_update_self() { _update_self() {
curl -S -f -o "$0" -z "$0" \ curl -S -f -o "$0" -z "$0" \
"https://raw.githubusercontent.com/moonq/bake/main/bake" "https://raw.githubusercontent.com/moonq/bake/main/bake"
chmod +x "$0"
} }
for (( i=1; i<=$#; i++ )); do for (( i=1; i<=$#; i++ )); do
if [[ $i -eq 1 ]]; then if [[ $i -eq 1 ]]; then