Update Bash Scripts/Install_Programs.sh
This commit is contained in:
1 parent
4e38b59155
commit
f7f9f5ac3d
1 file changed
+7
-5
@@ -61,7 +61,7 @@ install_wireshark () {
|
||||
# apt asks via debconf whether non-root users may capture packets
|
||||
sudo apt install -y wireshark
|
||||
# Only matters if you answered "Yes" to that prompt
|
||||
sudo usermod -aG wireshark "$USER"
|
||||
sudo usermod -aG wireshark "$USER" || true
|
||||
echo "Log out and back in for the wireshark group to take effect."
|
||||
echo
|
||||
}
|
||||
@@ -130,8 +130,9 @@ install_angry_ip_scanner () {
|
||||
| grep '"tag_name"' \
|
||||
| cut -d '"' -f4)
|
||||
if [ -z "$LATEST_TAG" ]; then
|
||||
echo "❌ Failed to determine latest version"
|
||||
exit 1
|
||||
echo "❌ Failed to determine latest version, skipping"
|
||||
echo
|
||||
return 0
|
||||
fi
|
||||
VERSION="${LATEST_TAG#v}"
|
||||
DEB_FILE="ipscan_${VERSION}_${ARCH}.deb"
|
||||
@@ -211,8 +212,9 @@ install_balena_etcher () {
|
||||
| cut -d '"' -f4 \
|
||||
| head -n1)
|
||||
if [ -z "$DEB_URL" ]; then
|
||||
echo "❌ Failed to determine latest release"
|
||||
exit 1
|
||||
echo "❌ Failed to determine latest release, skipping"
|
||||
echo
|
||||
return 0
|
||||
fi
|
||||
DEB_FILE=$(basename "$DEB_URL")
|
||||
wget -q --show-progress -O "$WORKDIR/$DEB_FILE" "$DEB_URL"
|
||||
|
||||
Reference in new issue
Block a user