Skip to content

Commit a85b6c9

Browse files
committed
step2.sh: Tolerate missing .IAPhysicalMedia
Signed-off-by: Hector Martin <[email protected]>
1 parent be7022d commit a85b6c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/step2/step2.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ echo
6565

6666
mount -u -w "$system_dir"
6767

68-
mv "$system_dir/.IAPhysicalMedia" "$system_dir/IAPhysicalMedia-disabled.plist"
68+
if [ -e "$system_dir/.IAPhysicalMedia" ]; then
69+
mv "$system_dir/.IAPhysicalMedia" "$system_dir/IAPhysicalMedia-disabled.plist"
70+
fi
6971

7072
if [ -e "$system_dir/System/Library/CoreServices/SystemVersion-disabled.plist" ]; then
7173
mv -f "$system_dir/System/Library/CoreServices/SystemVersion"{-disabled,}".plist"

0 commit comments

Comments
 (0)