Commit 78156de4 authored by Nick Bearson's avatar Nick Bearson
Browse files

colors bring me joy

parent 1789592a
......@@ -16,12 +16,20 @@ list_updated_files() {
}
echo "Retrieving a list of updated & new files from:"
echo "${REMOTE}"
echo -e "\e[96m${REMOTE}\e[0m"
echo "Get a ☕ , this could take a bit..."
for file in $(list_updated_files); do
echo ""
echo "${file} is updated or new. Download?"
if [ -f ${LOCAL}${file} ]; then
status="\e[93mupdated\e[0m"
else
status="\e[92mnew\e[0m"
fi
echo -e "${file} is ${status}. Download?"
select yn in "Yes" "No"; do
case ${yn} in
Yes ) rsync -z --progress --copy-links ${REMOTE}${file} ${LOCAL}${file}; break;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment