mirror of
https://github.com/ff4500/utilities.git
synced 2026-07-01 11:47:04 -05:00
ertyasd
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Indention - for reuse
|
||||
# -----------------------------------------------
|
||||
ind=" "
|
||||
indent() {
|
||||
local ind=" "
|
||||
printf "${ind}"
|
||||
}
|
||||
|
||||
# Seperators
|
||||
# -----------------------------------------------
|
||||
sep() {
|
||||
local ch="-"
|
||||
local sep_line="$(printf '%*s' "60" | tr ' ' "$ch")"
|
||||
@@ -12,19 +16,34 @@ sep() {
|
||||
#echo -e "-----------------------------------------------------------------------------"
|
||||
}
|
||||
|
||||
|
||||
# Check directory existence
|
||||
# -----------------------------------------------
|
||||
|
||||
# if [ ! -d "${source}" ]; then
|
||||
# mkdir ${source}
|
||||
# fi
|
||||
#
|
||||
# if [ ! -d "${output}" ]; then
|
||||
# mkdir ${output}
|
||||
# fi
|
||||
#
|
||||
#
|
||||
if [ ! -d "${base_dir}" ]; then
|
||||
echo -e "Base dir doesn't exist. Making it now."
|
||||
echo -e "mkdir ${base_dir}"
|
||||
#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}"
|
||||
#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}"
|
||||
#mkdir ${output}
|
||||
else
|
||||
echo -e "Output dir exists at ${output}"
|
||||
fi
|
||||
|
||||
|
||||
# # Clone everything in repo_list to source folder
|
||||
# # -----------------------------------------------
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user