From 5c7d639ebc08acdfd40a699825a6de75ba367ade Mon Sep 17 00:00:00 2001 From: Jason Pitman Date: Thu, 22 Aug 2019 17:28:25 -0500 Subject: [PATCH] dasdas --- backup/archive_repos/_lib/functions.sh | 27 ++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/backup/archive_repos/_lib/functions.sh b/backup/archive_repos/_lib/functions.sh index fd11c2d..a37bc99 100755 --- a/backup/archive_repos/_lib/functions.sh +++ b/backup/archive_repos/_lib/functions.sh @@ -16,33 +16,43 @@ sep() { #echo -e "-----------------------------------------------------------------------------" } +aaa() { + echo -e "${fg_darkgrey_01} -------------------------------------------------------- ${reset}" +} + # Check directory existence # ----------------------------------------------- +aaa +echo if [ ! -d "${base_dir}" ]; then - echo -e "Base dir doesn't exist. Making it now." - echo -e "mkdir ${base_dir}" + indent; indent; echo -e "Base dir doesn't exist. Making it now." + indent; indent; echo -e "> mkdir ${base_dir}" + echo #mkdir ${source} else echo -e "Base dir exists at ${base_dir}" fi if [ ! -d "${source}" ]; then - echo -e "Source dir doesn't exist. Making it now." - echo -e "mkdir ${source}" + indent; indent; echo -e "Source dir doesn't exist. Making it now." + indent; indent; echo -e "> mkdir ${source}" + echo #mkdir ${source} else echo -e "Source dir exists at ${source}" fi if [ ! -d "${output}" ]; then - echo -e "Output dir doesn't exist. Making it now." - echo -e "mkdir ${output}" + indent; indent; echo -e "Output dir doesn't exist. Making it now." + indent; indent; echo -e "> mkdir ${output}" #mkdir ${output} else echo -e "Output dir exists at ${output}" fi +echo +aaa # # Clone everything in repo_list to source folder # # ----------------------------------------------- @@ -103,8 +113,13 @@ zzz (){ #zzz run() { + echo sep indent; echo "Yay" sep echo + aaa + indent; indent; echo "YAY!" + aaa + echo }