Delete the last line with sed instead.
Thanks to Greg Troxel and Johannes Berg for reporting the portability
problem and helping with the fix.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
./wvtest run t/test-release-archive.sh
cmd/bup-python: cmd/python-cmd.sh config/config.vars Makefile
- head -n -1 $< > "$@".$$PPID.tmp
+ sed -e '$$ d' $< > "$@".$$PPID.tmp
printf "exec %q \"\$$@\"\n" "$(bup_python)" >> "$@".$$PPID.tmp
chmod +x "$@".$$PPID.tmp
mv "$@".$$PPID.tmp "$@"