Skip to content

Commit

Permalink
fix: overwritten download from binary to original file
Browse files Browse the repository at this point in the history
  • Loading branch information
celsodias12 committed Apr 6, 2023
1 parent 123a470 commit c1c6e97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ check_if_package_dependencies_installed() {
}

install_package() {
local readonly url_download_package="https://github.com/celsodias12/watch-files-changes/releases/download/1.0.0/watch-files-changes"
local readonly file_name="watch-files-changes.sh"
local readonly url_download_package="https://raw.githubusercontent.com/celsodias12/watch-files-changes/main/$file_name"

sudo wget "$url_download_package"

sudo mv "$file_name" "$PACKAGE_NAME"

sudo mv "$PACKAGE_NAME" "$PACKAGE_INSTALL_PATH"

sudo chmod +x "$PACKAGE_INSTALL_PATH"

echo "package '$PACKAGE_NAME' installed successfully"
}

check_if_package_dependencies_installed &&
Expand Down

0 comments on commit c1c6e97

Please sign in to comment.