summaryrefslogtreecommitdiff
path: root/makechrootpkg
diff options
context:
space:
mode:
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg3
1 files changed, 1 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 5410cda..5095425 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -182,10 +182,9 @@ install_files=$(grep "install=" PKGBUILD)
for pkg in ${pkgname[@]}; do
install_files+=' '
install_files+=$(echo $install_files |sed "s/\$pkgname/$pkg/"|sed "s/\${pkgname}/$pkg/")
+ install_files=$(eval echo $install_files |tr '[:blank:]' '\n'|sort |uniq)
done
-install_files=$(eval echo $install_files |tr '[:blank:]' '\n'|sort |uniq)
-
for f in $install_files;do
install="${f#"install="}"
if [ "$install" != "" -a -f "$install" ]; then