From 47ceebfa25b0baaa8a3190f10eb10e173a1b068a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 1 Jun 2024 15:07:30 +0300 Subject: [PATCH] Fix Code --- generator.php | 1 + src/base.sh | 1 + src/{functions => }/compatibility.sh | 0 3 files changed, 2 insertions(+) rename src/{functions => }/compatibility.sh (100%) diff --git a/generator.php b/generator.php index 0dd24ed..2b8984e 100644 --- a/generator.php +++ b/generator.php @@ -16,6 +16,7 @@ foreach($dirs as $dir){ } $code = str_replace("{{ CODES }}", implode("\n", $codes), $base); +$code = str_replace("{{ COMPATIBILITY }}", implode("\n", file_get_contents(__DIR__.'/src/compatibility.sh')), $base); try { $file = __DIR__.'/init.sh'; diff --git a/src/base.sh b/src/base.sh index a225599..5f75a1e 100644 --- a/src/base.sh +++ b/src/base.sh @@ -17,6 +17,7 @@ wiBold=$(tput bold) wiNormal=$(tput sgr0) {{ CODES }} +{{ COMPATIBILITY }} wi-start wi-restricted $0 $1 $2 diff --git a/src/functions/compatibility.sh b/src/compatibility.sh similarity index 100% rename from src/functions/compatibility.sh rename to src/compatibility.sh