Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rern committed Jan 11, 2024
1 parent c2a506e commit 03e0c53
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ if [[ -e /usr/bin/camilladsp ]]; then
systemctl stop camilladsp
rm -f /etc/default/camilladsp /usr/lib/systemd/system/camilladsp.service
pacman -Sy --needed --noconfirm camilladsp
readarray -t files <<< $( grep -rl enable_resampling $dircamilladsp )
for f in "${files[@]}"; do
sed -i '/enable_resampling\|resampler_type/ d' "$f"
done
files=$( grep -rl enable_resampling $dircamilladsp )
if [[ $files ]]; then
readarray -t files <<< $files
for f in "${files[@]}"; do
sed -i '/enable_resampling\|resampler_type/ d' "$f"
done
fi
[[ -e $dirsystem/camilladsp ]] && systemctl start camilladsp
fi
fi
Expand Down

0 comments on commit 03e0c53

Please sign in to comment.