rename project to runaway
This commit is contained in:
+8
-8
@@ -1,4 +1,4 @@
|
||||
GPG_KEY_URL="https://raw.githubusercontent.com/mateussiqueira/unleash/main/.github/unleash.gpg"
|
||||
GPG_KEY_URL="https://raw.githubusercontent.com/mateussiqueira/runaway/main/.github/runaway.gpg"
|
||||
|
||||
import_gpg_key() {
|
||||
local tmp_key
|
||||
@@ -30,13 +30,13 @@ verify_gpg_signature() {
|
||||
}
|
||||
|
||||
do_self_update() {
|
||||
header "Unleash Update"
|
||||
header "Runaway Update"
|
||||
|
||||
if ! command -v curl &>/dev/null; then
|
||||
error_exit "curl required for update"
|
||||
fi
|
||||
|
||||
local repo="mateussiqueira/unleash"
|
||||
local repo="mateussiqueira/runaway"
|
||||
local api_url="https://api.github.com/repos/${repo}/releases/latest"
|
||||
local tmp_dir
|
||||
tmp_dir=$(mktemp -d)
|
||||
@@ -62,11 +62,11 @@ do_self_update() {
|
||||
|
||||
info "Updating from v$VERSION to v$latest_tag..."
|
||||
|
||||
begin "Downloading latest unleash"
|
||||
local dl_url="https://raw.githubusercontent.com/${repo}/main/unleash"
|
||||
begin "Downloading latest runaway"
|
||||
local dl_url="https://raw.githubusercontent.com/${repo}/main/runaway"
|
||||
local sig_url="${dl_url}.sig"
|
||||
local tmp="$tmp_dir/unleash"
|
||||
local sig_tmp="$tmp_dir/unleash.sig"
|
||||
local tmp="$tmp_dir/runaway"
|
||||
local sig_tmp="$tmp_dir/runaway.sig"
|
||||
if curl -sL "$dl_url" -o "$tmp" && [ -s "$tmp" ]; then
|
||||
curl -sL "$sig_url" -o "$sig_tmp" 2>/dev/null || true
|
||||
end_ok
|
||||
@@ -87,7 +87,7 @@ do_self_update() {
|
||||
end_fail; error_exit "Downloaded script has syntax errors"
|
||||
fi
|
||||
|
||||
local target="${0:-unleash}"
|
||||
local target="${0:-runaway}"
|
||||
if [ ! -w "$target" ]; then
|
||||
info "$target not writable, trying sudo..."
|
||||
cp "$tmp" "$target" 2>/dev/null || sudo cp "$tmp" "$target" 2>/dev/null || {
|
||||
|
||||
Reference in New Issue
Block a user