diff options
author | Guillem Jover <guillem@debian.org> | 2018-10-09 23:53:14 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-10-10 01:13:00 +0200 |
commit | 8f14ffd71be934539e57e743aba533702ef59b53 (patch) | |
tree | dd59acdb347e641ddcb70f77438b541fa324ec64 /debian/dpkg.postinst | |
parent | c2ad8678a6d8299b2d51b8a56c6f2e441ee847d3 (diff) | |
download | dpkg-8f14ffd71be934539e57e743aba533702ef59b53.tar.gz |
shell: Quote variables
Reported-by: Johannes Schauer <josch@debian.org>
Warned-by: shellcheck
Diffstat (limited to 'debian/dpkg.postinst')
-rwxr-xr-x | debian/dpkg.postinst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst index e762b8a2c..5447d99a4 100755 --- a/debian/dpkg.postinst +++ b/debian/dpkg.postinst @@ -18,9 +18,9 @@ create_database() { # Create log file and set default permissions if possible create_logfile() { logfile=$DPKG_ROOT/var/log/dpkg.log - touch $logfile - chmod 644 $logfile - chown root:root $logfile 2>/dev/null || chown 0:0 $logfile + touch "$logfile" + chmod 644 "$logfile" + chown root:root "$logfile" 2>/dev/null || chown 0:0 "$logfile" } |