瀏覽代碼

Update container-restore-from-backup.sh

check for PVE
tteckster 2 年之前
父節點
當前提交
bc3d30b416
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      misc/container-restore-from-backup.sh

+ 1 - 0
misc/container-restore-from-backup.sh

@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 clear
+if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️  Can't Run from the Proxmox Shell"; exit; fi
 YW=$(echo "\033[33m")
 BL=$(echo "\033[36m")
 RD=$(echo "\033[01;31m")