From 0c2680cacc7e78261861b873af5c94c4a9db5a96 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Mon, 7 Oct 2024 00:58:42 +0530 Subject: [PATCH] The script now copies raspi-blinka.py and temp-calc.py file to temp-sensor folder created in desktop. --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index f844915..0227df5 100755 --- a/setup.sh +++ b/setup.sh @@ -64,6 +64,7 @@ PROJECT_DIR="/home/$USER/Desktop/temp-sensor" if [ ! -d "$PROJECT_DIR" ]; then echo -e "$line\nCreating 'temp-sensor' in Desktop directory for current user.\n$line\n" mkdir -p "$PROJECT_DIR" + cp "./raspi-blinka.py" "./temp-calc.py" "$PROJECT_DIR/" echo -e "$line\nCreated '$PROJECT_DIR' directory.\n$line\n" else echo -e "$line\n$PROJECT_DIR already exists. Please delete the folder before running this script.\n$line\n\nExiting..." @@ -72,6 +73,7 @@ fi # Create and activate Python virtual environment cd "$PROJECT_DIR" +chmod ugo+x ./raspi-blinka.py ./temp-calc.py python3 -m venv . --system-site-packages echo -e "$line\nVirtual environment created.\n$line\n" echo -e "$line\nActivating virtual environment...\n$line\n"