Skip to content

Commit eade99a

Browse files
committed
deb-eeprom: fixups
Signed-off-by: Patrick Yavitz <[email protected]>
1 parent c897ccb commit eade99a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

deb-eeprom

+5-4
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ cd rpi-eeprom-${EEPROM_VERSION}
157157
dpkg-buildpackage -us -nc -uc
158158
cd ..
159159
dpkg -i *.deb
160-
cd ..
161160
echo -e "Done."
162-
cd /home/$USER
163161
rm -fdr /home/$USER/.build/eeprom
162+
if [[ -d "/home/root" ]]; then rm -fdr /home/root; fi
163+
cd ~
164164
check
165165
}
166166

@@ -185,13 +185,14 @@ mkdir -p debian/patches
185185
mv ../rpi-eeprom-update.patch debian/patches/rpi-eeprom-update.patch
186186
echo rpi-eeprom-update.patch >> debian/patches/series
187187
rm -f debian/control; mv -f ../rpi-eeprom-control debian/control
188+
echo "12" > debian/compat
188189
dpkg-buildpackage -us -nc -uc
189190
cd ..
190191
dpkg -i *.deb
191-
cd ..
192192
echo -e "Done."
193-
cd /home/$USER
194193
rm -fdr /home/$USER/.build/eeprom
194+
if [[ -d "/home/root" ]]; then rm -fdr /home/root; fi
195+
cd ~
195196
check
196197
}
197198

0 commit comments

Comments
 (0)