Little tweak

master
Ismael Barros 2013-04-14 17:17:50 +02:00
parent 6a84e9771f
commit 943503ec1c
1 changed files with 4 additions and 2 deletions

View File

@ -87,13 +87,15 @@ else
die "!! Unknown mode $mode"
fi
#echo "Used files: $(cat "$USED_FILES")"
echo "Copying used files into $targetUsrPath/ ...";
if [ $CREATE_NEW_USR ]; then
echo "Copying used files into $targetUsrPath/ ...";
for i in $(cat "$USED_FILES" | sort | uniq); do
[ -f "$i" ] && install -Dv "$i" "$targetUsrPath/$(echo "$i" | sed -e "s|$wineUsrPath||")"
done
else
echo "Used files:"
cat "$USED_FILES"
fi
rm "$USED_FILES"