From e1813b5cc79d336c76699e8189982a40dedc6fb5 Mon Sep 17 00:00:00 2001 From: whitewhidow Date: Wed, 4 Nov 2020 21:45:28 +0100 Subject: [PATCH] ci? --- sideload-gui | 4 ++-- whitewhidow-mount | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sideload-gui b/sideload-gui index 1e7dfd9..b57ecfd 100755 --- a/sideload-gui +++ b/sideload-gui @@ -102,8 +102,8 @@ while [ -z $CI ] && true; do if [[ "$SELECTION" == *"available updates"* ]]; then #tee /dev/tty - [ -z $CI ] && [ $MOUNTSUCCESS ] && UPD=$(sideload-check-updates | grep "\[+\]") ; zenity --info --width=800 --text="We found the following available updates:\n\n$UPD" ; continue 1 - [ ! $MOUNTSUCCESS ] && zenity --info --width=800 --text="\n\nSorry this feature only works when the mount is successfull, (obviously) " + [ -z $CI ] && [ "$MOUNTSUCCESS" == true ] && UPD=$(sideload-check-updates | grep "\[+\]") && zenity --info --width=800 --text="We found the following available updates:\n\n$UPD" ; continue 1 + [ "$MOUNTSUCCESS" == false ] && zenity --info --width=800 --text="\n\nSorry this feature only works when the mount is successfull, (obviously) " fi if [[ "$SELECTION" == *"Change device settings"* ]]; then #tee /dev/tty diff --git a/whitewhidow-mount b/whitewhidow-mount index 83da9e1..2d8b887 100755 --- a/whitewhidow-mount +++ b/whitewhidow-mount @@ -1,6 +1,7 @@ #!/bin/bash source sideloader-config + if [ ${EUID:-$(id -u)} -eq 0 ]; then echo "PLEASE DO NOT RUN THIS SCRIPT USING ROOT" exit @@ -39,7 +40,6 @@ if [ $# -eq 0 ]; then rclone rcd --rc-web-gui --rc-no-auth --config=$CLOC --rc-addr :0 & > /dev/null - PID=$! sleep 1 echo -e "\n\n" read -p "$cr$cr Rclone-web-gui ($!) is now serving, $cr$cr press [ENTER] to stop it gracefully. $cr$cr" < "$(tty 0>&2)"