From 37266127357b58b2f6d7b3f4db1c623de9171b05 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Thu, 8 Oct 2015 10:35:26 +0200 Subject: [PATCH] [FIX] point_of_sale: rm with -f does not return non-zero --- .../posbox/overwrite_before_init/etc/init_posbox_image.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh index c32a4f6e845..c6d019cd945 100755 --- a/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh +++ b/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init_posbox_image.sh @@ -37,11 +37,11 @@ apt-get -y install ${PKGS_TO_INSTALL} apt-get clean localepurge -rm -rf /usr/share/doc || true -rm -rf /home/pi/python_games || true +rm -rf /usr/share/doc +rm -rf /home/pi/python_games # remove raspi-config notice, it's not necessary and it's not installed anyway -rm -f /etc/profile.d/raspi-config.sh || true +rm -f /etc/profile.d/raspi-config.sh # python-usb in wheezy is too old # the latest pyusb from pip does not work either, usb.core.find() never returns