Index: branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/BuildBootOptions.sh
===================================================================
--- branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/BuildBootOptions.sh (revision 223)
+++ branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/BuildBootOptions.sh (revision 224)
@@ -12,7 +12,7 @@
# check for see if there are any boot options in the temporary directory
cd "${tempDir}"
- Dirlist=$(find . -type d | grep "@")
+ Dirlist=$(find . -type f | grep "@")
if [ "${Dirlist}" ]; then
@@ -46,9 +46,9 @@
echo "Build Extra/com.apple.Boot.plist"
echo "********************************"
- for directory in $Dirlist ; do
- overide=$(echo $directory | sed 's/_/ /g' | tr -d "./@" |cut -d '+' -f1)
- string=$(echo $directory | tr -d "./@" |cut -d'+' -f2)
+ for bootOptionFile in $Dirlist ; do
+ overide=$(echo $bootOptionFile | sed 's/_/ /g' | tr -d "./@" |cut -d '+' -f1)
+ string=$(echo $bootOptionFile | tr -d "./@" |cut -d'+' -f2)
bootoptionshdextra[1]="${overide}"
bootoptionshdextra[2]="${string}"
@@ -89,10 +89,10 @@
#Note - Can this be somehow included above and delete the directory after reading it?
#cd "${3}/.Chameleon/"
- Dirlist=$(find . -type d | grep "@")
- for directory in $Dirlist ; do
- echo $directory
- rm -rf $directory
+ Dirlist=$(find . -type f | grep "@")
+ for bootOptionFile in $Dirlist ; do
+ echo $bootOptionFile
+ rm -rf $bootOptionFile
done
echo "-----------------------------------------------"