From 25fc46bec8ba79d0f0885ac0f825b7ab40d0dd2f Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Wed, 3 Feb 2021 18:58:47 +0200 Subject: [PATCH] ChMkDir: Check default dir --- util/ChMkDir.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 util/ChMkDir.sh diff --git a/util/ChMkDir.sh b/util/ChMkDir.sh new file mode 100644 index 0000000..c2769ea --- /dev/null +++ b/util/ChMkDir.sh @@ -0,0 +1,13 @@ +:<<'info' +shellnotes - ChMkDir.sh +(C) Dimitris Marakomihelakis +Released under the "All rights reserved" category. See the RIGHTS.txt file +in /docs/github/ for its full text. +info + +cd ~ +if [[ -d "$DEFAULT_PATH" ]]; then + exists=true +else + mkdir Notes >/dev/null +fi \ No newline at end of file