Small changes

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2021-10-14 14:01:10 -04:00
parent df60bfceda
commit 7ba42f052a
12 changed files with 58 additions and 18 deletions

View file

@ -17,13 +17,13 @@
commentPatches() {
file="$1";
if [ -f $file ]; then
if [ -f "$file" ]; then
shift;
for var in "$@"
do
#escaped=$(printf "%q" "$var");
#echo $escaped;
sed -i $file -e '\|'$var'| s|^#*|#|';
sed -i "$file" -e '\|'$var'| s|^#*|#|';
done
fi;
}