Browse Source

Create cache dir if not exists

Volodymyr Tkach 2 years ago
parent
commit
3ee7831c18
1 changed files with 5 additions and 0 deletions
  1. 5 0
      assets.sh

+ 5 - 0
assets.sh

@@ -33,6 +33,11 @@ if [[ -f "${TARGET_FILE}" ]]; then
 fi
 fi
 touch ${TARGET_FILE}
 touch ${TARGET_FILE}
 
 
+# Create cache dir if not exists
+if [[ ! -d "${CURRENT_DIR}/.cache" ]]; then
+	mkdir "${CURRENT_DIR}/.cache"
+fi
+
 IFS=""
 IFS=""
 while read line; do
 while read line; do
 	if [[ ${line} == "/*"* ]]; then
 	if [[ ${line} == "/*"* ]]; then