Fix path
[hdmi-switcher.git] / update.sh
index ea8eeea..42aee87 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -12,12 +12,12 @@ printf "\t\tMount OK\n"
 
 if [[ -e "/mnt/usb-update/config.ini" ]]; then
   printf "Found config.ini... "
-  (cp /mnt/usb-update/config.ini /home/pi > /dev/null 2>&1 && printf "\tCopy OK\n") || printf "\tCopy failure\n"
+  (cp /mnt/usb-update/config.ini /home/pi/hdmi-switcher > /dev/null 2>&1 && printf "\tCopy OK\n") || printf "\tCopy failure\n"
 fi
 
 if [[ -e "/mnt/usb-update/video.mp4" ]]; then
   printf "Found video.mp4... "
-  (cp /mnt/usb-update/video.mp4 /home/pi > /dev/null 2>&1 && printf "\tCopy OK\n") || printf "\tCopy failure\n"
+  (cp /mnt/usb-update/video.mp4 /home/pi/hdmi-switcher > /dev/null 2>&1 && printf "\tCopy OK\n") || printf "\tCopy failure\n"
 fi
 
 if [[ -e "/mnt/usb-update/update.zip" ]] && [[ -e "/mnt/usb-update/update.sig" ]]; then