aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-09-22 21:51:27 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-09-22 21:51:27 -0400
commit1d09b8002f949652dbd3d55b6e1de72571d1e85d (patch)
tree39de1aa8f30ec1d78e3f3951ce2def55e1d301b0 /libs
parent96b3a3f8c9dd059318f49e2ce147d966487600f4 (diff)
downloadlibrebootfr-1d09b8002f949652dbd3d55b6e1de72571d1e85d.tar.gz
librebootfr-1d09b8002f949652dbd3d55b6e1de72571d1e85d.zip
Remove overlooked braces from parameter expansions
This is a continuation of the last set of commits removing braces from parameter expressions which do not require them. The main script was overlooked when applying the previous changes, which this commit aims to correct. Also, one parameter expansion in libs/common was corrected as it was overlooked as well.
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/common2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/common b/libs/common
index b0cb5867..fd001a5d 100755
--- a/libs/common
+++ b/libs/common
@@ -113,7 +113,7 @@ diff_patch_file() {
local patch_file_path="$2"
# TODO: Improve handling of filenames to avoid gotchas w/ \n, \t, etc.
- local filename_in_diff="$(sed -rne 's/^-{3}\s+([^ \r\n]*).*/\1/p' "${patch_file_path}")"
+ local filename_in_diff="$(sed -rne 's/^-{3}\s+([^ \r\n]*).*/\1/p' "$patch_file_path")"
local source_file_path