Browse Source

Update hacs.sh

check for PVE
tteckster 2 năm trước cách đây
mục cha
commit
1a4837e881
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      misc/hacs.sh

+ 1 - 0
misc/hacs.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️  Can't Run from the Proxmox Shell"; exit; fi
 echo -e "\e[1;33m This script will install Home Assistant Community Store (HACS)  \e[0m"
 
 while true; do