Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/MightyPork/datatable.directory/src/commit/c29b6d4bac2d4ab73e083cc8e1bb41c8e310b96e/patch_vendor.sh You should set ROOT_URL correctly, otherwise the web may not work correctly.
datatable.directory codebase https://datatable.directory/
 
 
 
 
 
 
datatable.directory/patch_vendor.sh

14 lines
518 B

#!/usr/bin/env bash
find 'vendor_patches' -name '*.patch' | sort | while read f; do
# If we could reverse the patch, then it has already been applied; skip it
if patch --dry-run --reverse --force -p0 -N -i "$f" >/dev/null 2>&1; then
echo -e "\e[32m[i] Patch \"$f\" already applied - skipping.\e[m" >&2
else # patch not yet applied
echo -e "\e[33m[i] Applying patch \"$f\"...\e[m"
patch -p0 -N -i "$f" || echo -e "\e[31;1mPatch \"$f\" failed\e[m" >&2
fi
#patch -p0 -N -i "$f"
done;
echo "Patches applied."