Skip to content

Commit

Permalink
Fix updater script
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutfa Ibtihaji Ilham committed Mar 22, 2021
1 parent 4d7cefd commit 9511631
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# by Lutfa Ilham
# v1.0

HOME="/root"
DOWNLOADS_DIR="${HOME}/Downloads"
LIBERNET_TMP="${DOWNLOADS_DIR}/libernet"
REPOSITORY_URL="git://github.com/lutfailham96/libernet.git"
Expand All @@ -26,7 +27,7 @@ function update_libernet() {

function update_libernet_cli() {
echo -e "Updating Libernet ..." \
&& git fetch origin master \
&& git fetch origin main \
&& git reset --hard FETCH_HEAD \
&& bash install.sh \
&& echo -e "\nLibernet successfully updated!"
Expand Down Expand Up @@ -57,4 +58,4 @@ case $1 in
*)
update_libernet
;;
esac
esac

0 comments on commit 9511631

Please sign in to comment.