Skip to content

Commit

Permalink
Changed to force file deletion. (#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-mtsmt authored Jun 21, 2024
1 parent e82956a commit 2bdfdf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installer/cape2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ function install_yara() {
# for root
pip3 install ./yara-python
if [ -d yara-python ]; then
sudo rm -r yara-python
sudo rm -rf yara-python
fi

if id "cape" >/dev/null 2>&1; then
Expand All @@ -774,7 +774,7 @@ function install_yara() {
cd -
fi
if [ -d yara-python ]; then
sudo rm -r yara-python
sudo rm -rf yara-python
fi

}
Expand Down Expand Up @@ -1197,7 +1197,7 @@ function install_CAPE() {
#packages are needed for build options in extra/yara_installer.sh
apt-get install libjansson-dev libmagic1 libmagic-dev -y
sudo -u ${USER} bash -c 'poetry run extra/yara_installer.sh'
sudo rm -r yara-python
sudo rm -rf yara-python

sudo usermod -aG kvm ${USER}
sudo usermod -aG libvirt ${USER}
Expand Down

0 comments on commit 2bdfdf0

Please sign in to comment.