From 294c53c2de3638cdc0d33330526a27469d465ef1 Mon Sep 17 00:00:00 2001 From: hjelev Date: Sun, 20 Mar 2022 22:12:17 +0200 Subject: [PATCH] update --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 5a8395c..bb3b737 100755 --- a/install.sh +++ b/install.sh @@ -47,8 +47,7 @@ print_yellow(){ } check_and_install_pip(){ - cwd=$(pwd) - #python=$(which python) + pip_ver=$(${python} -m pip --version 2>&1); if [[ "$pip_ver" == *"No"* ]]; then echo "- Pip is not installed, installing it." @@ -99,7 +98,7 @@ update_config(){ set_cron(){ printm "Setting Cronjob" - + cwd=$(pwd) crontab -l > tempcron if grep -q rpi-cpu2mqtt.py tempcron; then cronfound=$(grep rpi-cpu2mqtt.py tempcron)