Fix bashisms: echo -e -> printf
This commit is contained in:
5
debian/changelog
vendored
5
debian/changelog
vendored
@@ -36,10 +36,11 @@ xen-tools (4.2~rc1-1) UNRELEASED; urgency=low
|
||||
- [debian/control]: debhelper-but-no-misc-depends
|
||||
- [debian/copyright]: copyright-without-copyright-notice
|
||||
- [debian/source/format]: missing-debian-source-format
|
||||
* Fix some bashisms
|
||||
* Fix some bashisms (Closes: #530226)
|
||||
- [^y] → [!y] (Thanks to Mathieu Parent!)
|
||||
- kill -HUP → kill -s HUP (found by checkbashism)
|
||||
- ${parm/?/pat[/str]} → echo | sed (Closes: #530226)
|
||||
- ${parm/?/pat[/str]} → echo | sed
|
||||
- echo -e → printf
|
||||
|
||||
-- Axel Beckert <abe@debian.org> Fri, 09 Apr 2010 01:30:49 +0200
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ installDebianPackage ()
|
||||
#
|
||||
# Use policy-rc to stop any daemons from starting.
|
||||
#
|
||||
echo -e '#!/bin/bash\nexit 101\n' > ${prefix}/usr/sbin/policy-rc.d
|
||||
printf '#!/bin/bash\nexit 101\n' > ${prefix}/usr/sbin/policy-rc.d
|
||||
chmod +x ${prefix}/usr/sbin/policy-rc.d
|
||||
|
||||
#
|
||||
|
||||
@@ -29,6 +29,6 @@ for i in `rgrep '^use ' .. | grep -v Expect | grep -v POSIX | grep -v Xen:: | gr
|
||||
\;\(\) | sort | uniq`; \
|
||||
do \
|
||||
echo "BEGIN{ use_ok( '$i' ); }"; \
|
||||
echo "require_ok( '$i' );" ; \
|
||||
echo "require_ok( '$i' );" ; \
|
||||
printf '\n' ; \
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user