Skip to content

Commit

Permalink
Make the install.sh compatible with Fedora 29 (#31)
Browse files Browse the repository at this point in the history
The wireshark package is renamed in Fedora 29 (they removed the -qt suffix). I've made the install.sh compatible with Fedora 29, without loosing the ability to install this package on Fedora 28 and older.
  • Loading branch information
Cybertinus authored and SmartFinn committed Dec 29, 2018
1 parent 83bc0fd commit 857e0ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ for dist_id in $ID $ID_LIKE; do
do_install
;;
fedora)
if [ "${VERSION_ID}" -ge '29' ] ; then
wireshark_packagename='wireshark'
else
wireshark_packagename='wireshark-qt'
fi
_msg "Install dependencies..."
sudo dnf install -y ${PYTHON-"python"} \
openssh-askpass telnet vinagre wireshark-qt
openssh-askpass telnet vinagre "${wireshark_packagename}"
do_install
;;
opensuse|suse)
Expand Down

0 comments on commit 857e0ba

Please sign in to comment.