Update 3 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 8s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 8s
This commit is contained in:
@@ -49,15 +49,20 @@ fi
|
||||
|
||||
if [ -z "$SYSTEM_TYPE" ]; then
|
||||
echo " Could not auto-detect system type."
|
||||
echo " Please select your system:"
|
||||
echo " 1) Raspberry Pi"
|
||||
echo " 2) Ubuntu (x86_64/Mac Mini)"
|
||||
read -p " Enter choice (1 or 2): " choice
|
||||
case $choice in
|
||||
1) SYSTEM_TYPE="rpi" ;;
|
||||
2) SYSTEM_TYPE="ubuntu" ;;
|
||||
*) _die "Invalid choice. Installation cancelled." ;;
|
||||
esac
|
||||
# Check if running interactively
|
||||
if [ -t 0 ]; then
|
||||
echo " Please select your system:"
|
||||
echo " 1) Raspberry Pi"
|
||||
echo " 2) Ubuntu (x86_64/Mac Mini)"
|
||||
read -p " Enter choice (1 or 2): " choice
|
||||
case $choice in
|
||||
1) SYSTEM_TYPE="rpi" ;;
|
||||
2) SYSTEM_TYPE="ubuntu" ;;
|
||||
*) _die "Invalid choice. Installation cancelled." ;;
|
||||
esac
|
||||
else
|
||||
_die "Could not auto-detect system type. Set SYSTEM_TYPE=rpi or SYSTEM_TYPE=ubuntu in service.env"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user