From 4ffeb962c99674dc625c9a051efbec0db93f6186 Mon Sep 17 00:00:00 2001 From: pujan14 Date: Wed, 6 Apr 2016 12:16:29 +0200 Subject: [PATCH] Updated install.sh to make it path independent This would allow you to execute script like /home/pi/pi_video_looper/install.sh --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 17aa9eb..3deff1c 100755 --- a/install.sh +++ b/install.sh @@ -26,6 +26,7 @@ rm -rf pi_hello_video echo "Installing video_looper program..." echo "==================================" +cd "$(dirname "$0")" mkdir -p /mnt/usbdrive0 # This is very important if you put your system in readonly after python setup.py install --force cp video_looper.ini /boot/video_looper.ini