Permalink
Browse files

No longer sourcing tmpfile, only saving into var

  • Loading branch information...
1 parent 8c90892 commit 739c80bb928bfe4d98ca32026077234f044c718f Bryan Garza committed May 13, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 pbs
View
10 pbs
@@ -11,13 +11,13 @@ if [[ "$@" == 'songstart' ]]; then
while read -r line
do
- if ((numlines <= 1)); then
- echo "$line" >> "$file"
+ if ((numlines == 0)); then
+ echo -n "${line:7} - " >> "$file"
+ numlines=$((numlines+1))
+ elif ((numlines == 1)); then
+ echo -n "${line:6} |" >> "$file"
numlines=$((numlines+1))
fi
done
- sed -i 's/=/=\"/g' "$file"
- sed -i 's/$/\"/g' "$file"
-
fi

0 comments on commit 739c80b

Please sign in to comment.