diff options
author | Guillem Jover <guillem@debian.org> | 2018-10-10 00:04:17 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-10-10 01:12:54 +0200 |
commit | 25a8a2f05282bd5d0cc8568dfd0c7573e90b170a (patch) | |
tree | 404ebfaa3447e7b82ed77af2a2a6b95b23ae4874 /scripts | |
parent | 60ae796b0d716456a2da6416a9c7997f8b42bef2 (diff) | |
download | dpkg-25a8a2f05282bd5d0cc8568dfd0c7573e90b170a.tar.gz |
dpkg-maintscript-helper: Use explicit escape instead of literal backslash
Warned-by: shellcheck
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dpkg-maintscript-helper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dpkg-maintscript-helper.sh b/scripts/dpkg-maintscript-helper.sh index de6c863c2..d501307e1 100755 --- a/scripts/dpkg-maintscript-helper.sh +++ b/scripts/dpkg-maintscript-helper.sh @@ -96,7 +96,7 @@ prepare_rm_conffile() { local md5sum old_md5sum md5sum="$(md5sum "$CONFFILE" | sed -e 's/ .*//')" old_md5sum="$(dpkg-query -W -f='${Conffiles}' "$PACKAGE" | \ - sed -n -e "\'^ $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" + sed -n -e "\\'^ $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" if [ "$md5sum" != "$old_md5sum" ]; then mv -f "$CONFFILE" "$CONFFILE.dpkg-backup" else @@ -207,7 +207,7 @@ prepare_mv_conffile() { local md5sum old_md5sum md5sum="$(md5sum "$CONFFILE" | sed -e 's/ .*//')" old_md5sum="$(dpkg-query -W -f='${Conffiles}' "$PACKAGE" | \ - sed -n -e "\'^ $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" + sed -n -e "\\'^ $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" if [ "$md5sum" = "$old_md5sum" ]; then mv -f "$CONFFILE" "$CONFFILE.dpkg-remove" fi |