From 98bb94bec1dabd1f4acfcbb26ff357618274fe27 Mon Sep 17 00:00:00 2001 From: ngn Date: Wed, 21 Aug 2024 07:19:56 +0300 Subject: [PATCH] fix: correct install function line removal for mp-build --- mp-build/scripts/mp-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp-build/scripts/mp-build.sh b/mp-build/scripts/mp-build.sh index 89ea74d..e3ff8e5 100755 --- a/mp-build/scripts/mp-build.sh +++ b/mp-build/scripts/mp-build.sh @@ -438,7 +438,7 @@ success "(3/6) Created the changes file (CHANGES)" # create the install script if type INSTALL &>/dev/null; then - echo "$(type INSTALL | head -n-1 | tail -n-2 | sed 's/ //')" > "${distpath}/INSTALL" + echo "$(type INSTALL | head -n-1 | sed '1,3d' | sed 's/ //')" > "${distpath}/INSTALL" check_ret "(4/6) Failed to create the install script (INSTALL)" fi success "(4/6) Created the install script (INSTALL)"