Isolate variables

This commit is contained in:
Riyyi
2021-02-22 15:19:22 +01:00
parent 2223f936dd
commit 530082843e
+6 -7
View File
@@ -10,13 +10,12 @@ set -- emacsclient -a ''
# ------------------------------------------ # ------------------------------------------
# Output formatting
B=$(tput bold)
L=$(tput setf 1) # Blue
N=$(tput sgr0)
format() { format() {
echo "${B}${L}::${N}${B} ${1}${N}" b=$(tput bold)
blue=$(tput setf 1)
n=$(tput sgr0)
echo "${b}${blue}::${n}${b} ${1}${n}"
} }
cleanup() { cleanup() {
@@ -75,7 +74,7 @@ for file in $files; do
sed -i "${i}s/.*/${command}/;" "$tmpfile" > /dev/null sed -i "${i}s/.*/${command}/;" "$tmpfile" > /dev/null
i=$((i+1)) i=$((i + 1))
done done
# Delete empty lines # Delete empty lines