Merge pull request #2 from mdPlusPlus/master

Removing spaces between IDs, because they result in error message (invalid parameter)
This commit is contained in:
Trent Arcuri 2018-05-31 10:10:38 -05:00 committed by GitHub
commit 2f2d9251e6

View File

@ -87,9 +87,9 @@ makefile()
printf "options vfio-pci ids=" >> $genfile
IFS=" "
for line in $(cat $tmpfile); do
printf "${lspciid[$line]}, " >> $genfile
printf "${lspciid[$line]}," >> $genfile
done
truncate -s-2 $genfile #Fix trailing comma
truncate -s-1 $genfile #Fix trailing comma
echo "$genfile written successfully."
}