fix: building the INSTALL script

This commit is contained in:
ngn
2024-08-12 03:18:48 +03:00
parent 1a2593959e
commit 21c30cc8e5
2 changed files with 6 additions and 1 deletions

View File

@ -415,7 +415,7 @@ success "(3/6) Created the changes file (CHANGES)"
# create the install script
if type INSTALL &>/dev/null; then
echo "$(type INSTALL | tail -n+2)" > "${distpath}/INSTALL"
echo "$(type INSTALL | head -n-1 | tail -n-2 | sed 's/ //')" > "${distpath}/INSTALL"
check_ret "(4/6) Failed to create the install script (INSTALL)"
fi
success "(4/6) Created the install script (INSTALL)"