Anonymous avatar Anonymous committed 8c85261

bommy: single-quoted strings don't interpolate

Fix a few instances of single-quoted strings which were meant to interpolate.

committer: H. Peter Anvin <hpa@zytor.com>;

Comments (0)

Files changed (1)

 # Find the first line with a kernel on it, if one exists.
 where_first_kernel () {
     sed -r -n \
-	-e '/^[[:space:]]*${kernel_pattern_regexp}\b/{=;q;}' \
+	-e "/^[[:space:]]*${kernel_pattern_regexp}\b/{=;q;}" \
 	< "$bootloader_conf"
 }
 
 bommy_enable () {
     option=$(regex_escape "$1")
     sed -r \
-	-e '/^[[:space:]]*${option}([[:space:]]|$)/d' \
+	-e "/^[[:space:]]*${option}([[:space:]]|"\$")/d" \
 	-e "1i$1" \
 	-i "$bootloader_conf"
 }
 bommy_disable () {
     option=$(regex_escape "$1")
     sed -r \
-	-e '/^[[:space:]]*${option}([[:space:]]|$)/d' \
+	-e "/^[[:space:]]*${option}([[:space:]]|"\$")/d" \
 	-i "$bootloader_conf"
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.