Update patch-fbc.sh

ldconfig needs elevated rights, but we dont wanna start the entire script elevated or we are in the wrong context.
so we invoke only ldconfig via sudo
This commit is contained in:
serossi 2022-04-13 08:34:46 +02:00 committed by GitHub
commit 99b34a8799
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,7 @@ patch () {
sed "$patch" "$backup_path/$object.$driver_version$backup_suffix" > \
"${PATCH_OUTPUT_DIR-$driver_dir}/$object.$driver_version"
sha1sum "${PATCH_OUTPUT_DIR-$driver_dir}/$object.$driver_version"
ldconfig
sudo ldconfig
echo "Patched!"
}