|  | @@ -1,6 +1,6 @@
 | 
	
		
			
			| 1 | 1 |  #!/bin/bash
 | 
	
		
			
			| 2 | 2 |  
 | 
	
		
			
			| 3 |  | -. $(ffoom path) || exit 3
 | 
	
		
			
			|  | 3 | +. "$(ffoom path)" || exit 3
 | 
	
		
			
			| 4 | 4 |  
 | 
	
		
			
			| 5 | 5 |  ffoo import pretty
 | 
	
		
			
			| 6 | 6 |  
 | 
	
	
		
			
			|  | @@ -18,8 +18,8 @@ xd2html() {
 | 
	
		
			
			| 18 | 18 |          test -n "$name"  || continue
 | 
	
		
			
			| 19 | 19 |          test -n "$color" || continue
 | 
	
		
			
			| 20 | 20 |          debug -v name color
 | 
	
		
			
			| 21 |  | -        test "$name" == "URxvt.background" && echo "$color" > $CSDEMO_BG
 | 
	
		
			
			| 22 |  | -        test "$name" == "URxvt.foreground" && echo "$color" > $CSDEMO_FG
 | 
	
		
			
			|  | 21 | +        test "$name" == "URxvt.background" && echo "$color" > "$CSDEMO_BG"
 | 
	
		
			
			|  | 22 | +        test "$name" == "URxvt.foreground" && echo "$color" > "$CSDEMO_FG"
 | 
	
		
			
			| 23 | 23 |          echos "        <p style='color: $color'>$name</p>"
 | 
	
		
			
			| 24 | 24 |      done
 | 
	
		
			
			| 25 | 25 |  }
 | 
	
	
		
			
			|  | @@ -43,20 +43,20 @@ css() {
 | 
	
		
			
			| 43 | 43 |      echos "body {"
 | 
	
		
			
			| 44 | 44 |      echos "    font-size: xx-large;"
 | 
	
		
			
			| 45 | 45 |      echos "    font-family: monospace;"
 | 
	
		
			
			| 46 |  | -    echos "    color: $(cat $CSDEMO_FG);"
 | 
	
		
			
			| 47 |  | -    echos "    background-color: $(cat $CSDEMO_BG);"
 | 
	
		
			
			|  | 46 | +    echos "    color: $(cat "$CSDEMO_FG");"
 | 
	
		
			
			|  | 47 | +    echos "    background-color: $(cat "$CSDEMO_BG");"
 | 
	
		
			
			| 48 | 48 |      echos "}"
 | 
	
		
			
			| 49 | 49 |  }
 | 
	
		
			
			| 50 | 50 |  
 | 
	
		
			
			| 51 | 51 |  test -n "$CSDEMO_FNAME" || usage_is "scheme.Xresources"
 | 
	
		
			
			| 52 | 52 |  
 | 
	
		
			
			| 53 |  | -htmlhead                    >  $CSDEMO_FNAME.html
 | 
	
		
			
			| 54 |  | -cat $CSDEMO_FNAME | xd2html >> $CSDEMO_FNAME.html
 | 
	
		
			
			| 55 |  | -htmltail                    >> $CSDEMO_FNAME.html
 | 
	
		
			
			| 56 |  | -debug -f $CSDEMO_FG $CSDEMO_BG
 | 
	
		
			
			|  | 53 | +htmlhead                 >  "$CSDEMO_FNAME.html"
 | 
	
		
			
			|  | 54 | +<"$CSDEMO_FNAME" xd2html >> "$CSDEMO_FNAME.html"
 | 
	
		
			
			|  | 55 | +htmltail                 >> "$CSDEMO_FNAME.html"
 | 
	
		
			
			|  | 56 | +debug -f "$CSDEMO_FG" "$CSDEMO_BG"
 | 
	
		
			
			| 57 | 57 |  test -s "$CSDEMO_FG" || die "failed to parse URxvt.foreground"
 | 
	
		
			
			| 58 | 58 |  test -s "$CSDEMO_BG" || die "failed to parse URxvt.background"
 | 
	
		
			
			| 59 |  | -css                         >  $CSDEMO_FNAME.css
 | 
	
		
			
			|  | 59 | +css                         >  "$CSDEMO_FNAME.css"
 | 
	
		
			
			| 60 | 60 |  
 | 
	
		
			
			| 61 |  | -rm $CSDEMO_BG
 | 
	
		
			
			| 62 |  | -rm $CSDEMO_FG
 | 
	
		
			
			|  | 61 | +rm "$CSDEMO_BG"
 | 
	
		
			
			|  | 62 | +rm "$CSDEMO_FG"
 |