diff --git a/usr/local/bin/upd b/usr/local/bin/upd index cd34cd7..f56e44c 100755 --- a/usr/local/bin/upd +++ b/usr/local/bin/upd @@ -1,5 +1,5 @@ #!/bin/bash -# version: 0.0.13 +# version: 0.0.14 # file: upd # Folder: /usr/local/bin # By echolib diff --git a/var/lib/upd/scripts/updater b/var/lib/upd/scripts/updater index d863d19..5c85026 100644 --- a/var/lib/upd/scripts/updater +++ b/var/lib/upd/scripts/updater @@ -48,13 +48,12 @@ curl -L -o ${app_name}-main.tar.gz "$repo_tar" 2>/dev/null tar -xzf "${app_name}-main.tar.gz" cd "${app_name}-main" -rsync -a "usr/local/bin/$app_name" "/usr/local/bin/$app_name" +cp -f "usr/local/bin/$app_name" "/usr/local/bin/$app_name" rsync -a --delete "var/lib/$app_name/" "/var/lib/$app_name/" rsync -a --delete "etc/$app_name/" "/etc/$app_name/" upd -v rm -rf "/tmp/${app_name}-main" -cd /tmp -rm -f "${app_name}-main.tar.gz" +rm -f "/tmp/${app_name}-main.tar.gz" }