Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some problematic code
Browse files Browse the repository at this point in the history
notsudoers authored Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7341682 commit 59ee2d0
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
@@ -228,11 +228,7 @@ function installWireGuard() {
apk add wireguard-tools iptables build-base libpng-dev
curl -O https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz
tar xf qrencode-4.1.1.tar.gz
cd qrencode-4.1.1
./configure
make
make install
ldconfig
(cd qrencode-4.1.1 || exit && ./configure && make && make install && ldconfig)
fi
# Make sure the directory exists (this does not seem the be the case on fedora)
@@ -515,10 +511,8 @@ function uninstallWg() {
elif [[ ${OS} == 'arch' ]]; then
pacman -Rs --noconfirm wireguard-tools qrencode
elif [[ ${OS} == 'alpine' ]]; then
cd qrencode-4.1.1
make uninstall
cd ..
rm -rf qrencode-*
(cd qrencode-4.1.1 || exit && make uninstall)
rm -rf qrencode-* || exit
apk del wireguard-tools build-base libpng-dev
fi

0 comments on commit 59ee2d0

Please sign in to comment.