self updater
This commit is contained in:
1
bake
1
bake
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user