ghost-node/scripts/patch.sh
Uncle Stinky 4348580127
patches for the latest rustc compiler
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2026-02-05 18:19:54 +03:00

16 lines
328 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR=$(dirname "$0")
PATCHES_DIR="$SCRIPT_DIR/patches"
if [[ ! -d "$PATCHES_DIR" ]]; then
echo "[-] Error: directory with patches not found: $PATCHES_DIR"
exit 1
fi
for patch_file in "$PATCHES_DIR"/*.sh; do
if [ -f "$patch_file" ] && [ -x "$patch_file" ]; then
"$patch_file"
fi
done