Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 4, 2024
1 parent e383fa9 commit 3632a33
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/nightly/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# AdGuard VPN Installation Script

set -e -f -u
set -e -u

# Function log is an echo wrapper that writes to stderr if the caller
# requested verbosity level greater than 0. Otherwise, it does nothing.
Expand Down Expand Up @@ -37,6 +37,7 @@ parse_opts() {
;;
'h')
usage
exit 0
;;
'o')
output_dir="$OPTARG"
Expand Down Expand Up @@ -293,6 +294,10 @@ unpack() {
$remove_command "$pkg_name"
log "Package has been unpacked successfully"

dir_name=$(echo "${pkg_name}" | sed -E -e 's/(.*)(\.tar\.gz|\.zip)/\1/')
mv -f "${output_dir}/${dir_name}/*" "${output_dir}"
rmdir "${output_dir}/${dir_name}"

# Check for existing symlink or .nosymlink file
if [ -L "/usr/local/bin/${exe_name}" ] && \
[ "$(readlink -f "/usr/local/bin/${exe_name}")" = "$(readlink -f "${output_dir}/${exe_name}")" ]; then
Expand Down Expand Up @@ -572,7 +577,7 @@ channel='nightly'
verbose='1'
cpu=''
os=''
version='1.0.3'
version='1.1.75'
uninstall='0'
remove_command="rm -f"
symlink_exists='0'
Expand Down

0 comments on commit 3632a33

Please sign in to comment.