瀏覽代碼

Created fn_syscheck

Daniel Gibbs 11 年之前
父節點
當前提交
63d049a2bc
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      functions/fn_syscheck

+ 10 - 0
functions/fn_syscheck

@@ -0,0 +1,10 @@
+#!/bin/bash
+# LGSM fn_systemdircheck function
+# Author: Daniel Gibbs
+# Website: http://danielgibbs.co.uk
+# Version: 241214
+
+if [ ! -e "${systemdir}" ]; then
+	fn_printfailnl "Cannot access ${systemdir}: No such directory"
+	exit
+fi