Skip to content

Commit

Permalink
Fixed install script for macos
Browse files Browse the repository at this point in the history
Replaced ~ with $HOME
  • Loading branch information
oshaked1 committed Jun 16, 2024
1 parent b772648 commit ea09a7e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dist/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ else
fi
fi

mkdir -p ~/.config/wireshark/profiles
cp -r profiles/Tracee ~/.config/wireshark/profiles/
echo "[*] Installed profile to ~/.config/wireshark/profiles/Tracee"
mkdir -p $HOME/.config/wireshark/profiles
cp -r profiles/Tracee $HOME/.config/wireshark/profiles/
echo "[*] Installed profile to $HOME/.config/wireshark/profiles/Tracee"

WS_VERSION_SHORT=$(echo $WS_VERSION_EXISTS | grep -o -E "[0-9]+\.[0-9]+")
if [[ $WS_VERSION_SHORT < "4.3" ]]; then
Expand All @@ -28,9 +28,9 @@ if [[ $WS_VERSION_SHORT < "4.3" ]]; then
else
WS_VERSION_DIR=${WS_VERSION_SHORT//./-}
fi
PLUGINS_DIR="~/.local/lib/wireshark/plugins/$WS_VERSION_DIR"
PLUGINS_DIR="$HOME/.local/lib/wireshark/plugins/$WS_VERSION_DIR"
else
PLUGINS_DIR="~/.local/lib/wireshark/plugins"
PLUGINS_DIR="$HOME/.local/lib/wireshark/plugins"
fi

mkdir -p $PLUGINS_DIR/epan
Expand All @@ -41,9 +41,9 @@ cp tracee-json.so* $PLUGINS_DIR/wiretap
echo "[*] Installed plugins to $PLUGINS_DIR"

if [[ $WS_VERSION_SHORT < "4.1" ]]; then
EXTCAP_DIR="~/.config/wireshark/extcap"
EXTCAP_DIR="$HOME/.config/wireshark/extcap"
else
EXTCAP_DIR="~/.local/lib/wireshark/extcap"
EXTCAP_DIR="$HOME/.local/lib/wireshark/extcap"
fi

mkdir -p $EXTCAP_DIR
Expand Down

0 comments on commit ea09a7e

Please sign in to comment.