Formats echo strings in config script

This commit is contained in:
William Carroll 2017-06-23 13:11:03 -04:00
parent 35594873ed
commit 73ecea2030

View file

@ -19,7 +19,7 @@ function symlink_configs () {
echo "$filename: " echo "$filename: "
if [ -f "${HOME}/${filename}" ] && [ ! -L "${HOME}/${filename}" ]; then if [ -f "${HOME}/${filename}" ] && [ ! -L "${HOME}/${filename}" ]; then
echo -n "Backing up ${filename} ... " && \ echo -n "Backing up ${filename}... " && \
mv "${HOME}/${filename}" "${HOME}/${filename}.bak" && \ mv "${HOME}/${filename}" "${HOME}/${filename}.bak" && \
echo "Done." echo "Done."
fi fi
@ -31,7 +31,7 @@ function symlink_configs () {
echo "Already symlinked but NOT to the proper location. Aborting..." echo "Already symlinked but NOT to the proper location. Aborting..."
fi fi
else else
echo -n "Symlinking to ${filename} ... " && \ echo -n "Symlinking to ${filename}... " && \
ln -s $cf "${HOME}/${filename}" && \ ln -s $cf "${HOME}/${filename}" && \
echo "Done." echo "Done."
fi fi