Rat-OS/RatOS-configuration

klipper-mcu-update.sh & (any) make-and-flash-mcu.sh has root/non-root requirement collision

kmarty opened this issue · 1 comments

Hi,
in ~/klipper_config/config/scriptsklipper-mcu-update.sh is:

if [ "$EUID" -eq 0 ]
  then echo "ERROR: This script should not be run as root"
  exit
fi

and this script calls scripts "make-and-flash-mcu.sh".
But any "make-and-flash-mcu.sh" has:

if [ "$EUID" -ne 0 ]
  then echo "ERROR: Please run as root"
  exit
fi

Until Schrödingers "root" will be discovered, this can't be fullfiled.

Thank you! Was fixed in 00a03ee