Merge pull request #273799 from nbraud/mpvScripts/dirPkg-extension-fix

mpvScripts: Fix remaining issues with `.lua` suffixes and `scriptName`
This commit is contained in:
Maciej Krüger 2023-12-31 10:40:01 +01:00 committed by GitHub
commit b23e2d2aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ lib.makeOverridable (args: stdenvNoCC.mkDerivation (extendedBy
exit 1
}
mkdir -p "${scriptsDir}"
cp -a "${scriptPath}" "${scriptsDir}/${lib.removeSuffix ".lua" scriptName}"
cp -a "${scriptPath}" "${scriptsDir}/${scriptName}"
else
install -m644 -Dt "${scriptsDir}" \
${escapedList ([ scriptPath ] ++ extraScripts)}