Skip to content

Commit f1f32a1

Browse files
authored
mangle-hw-libs.sh: Remove math expression (#3344)
1 parent 2822bac commit f1f32a1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

installer/mangle-hw-libs.sh

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ if [ -d "$1" ]; then
2222
hw_lib_dir="$1"
2323
fi
2424

25-
# Count files processed
26-
((processed=0))
27-
2825
echo -n "Looking for libvdpau.so.1..."
2926
hwlib="${hw_lib_dir}/libvdpau.so.1"
3027
if [ -w "${hwlib}" ]; then
@@ -36,7 +33,6 @@ if [ -w "${hwlib}" ]; then
3633
-e 's,/usr\(/lib/vdpau\),\./\.\.\1,g' \
3734
"${hwlib}"
3835
echo " done."
39-
((processed+=1))
4036
else
4137
echo " NOT found, skipping."
4238
fi
@@ -48,11 +44,9 @@ if [ -w "${hwlib}" ]; then
4844
# /usr/lib/x86_64-linux-gnu/dri => ./../lib/x86_64-linux-gnu/dri
4945
sed -i -e 's,/usr\(/lib/x86_64-linux-gnu/dri\),\./\.\.\1,g' "${hwlib}"
5046
echo " done."
51-
((processed+=1))
5247
else
5348
echo " NOT found, skipping."
5449
fi
5550

56-
# Final summary
57-
echo "Files processed: ${processed}" && exit 0
51+
exit 0
5852

0 commit comments

Comments
 (0)