fix updater ; damn mouse !
This commit is contained in:
parent
0a3e297a9e
commit
b62a523289
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# version: 0.0.8
|
# version: 0.0.9
|
||||||
# file: upd
|
# file: upd
|
||||||
# Folder: /usr/local/bin
|
# Folder: /usr/local/bin
|
||||||
# By echolib
|
# By echolib
|
||||||
|
|
|
@ -23,7 +23,7 @@ curl -L -o upd-main.tar.gz "$upd_repo_tar" 2>/dev/null
|
||||||
! [[ -f "upd-main.tar.gz" ]] \
|
! [[ -f "upd-main.tar.gz" ]] \
|
||||||
&& echo "! Download error" \
|
&& echo "! Download error" \
|
||||||
&& return
|
&& return
|
||||||
|
|
||||||
tar -xzf upd-main.tar.gz
|
tar -xzf upd-main.tar.gz
|
||||||
cd upd-main
|
cd upd-main
|
||||||
rsync -a --delete "usr/local/bin/" "/usr/local/bin"
|
rsync -a --delete "usr/local/bin/" "/usr/local/bin"
|
||||||
|
@ -36,3 +36,4 @@ echo "# upd updated to: $upd_cur"
|
||||||
|
|
||||||
rm -rf /tmp/upd-main
|
rm -rf /tmp/upd-main
|
||||||
rm -f upd-main.tar.gz
|
rm -f upd-main.tar.gz
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue