Ver código fonte

Created fn_syscheck

Daniel Gibbs 11 anos atrás
pai
commit
63d049a2bc
1 arquivos alterados com 10 adições e 0 exclusões
  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