Skip to content
Snippets Groups Projects
Commit 4d81bb45 authored by micah's avatar micah :speech_balloon:
Browse files

fixed catifexec function to actually work, also now takes arguments that are...

fixed catifexec function to actually work, also now takes arguments that are passed, thanks to a report from John Hallam
parent 33ff4f75
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,8 @@ version 0.9.6 -- unreleased
dup handler, with the new vsnames configuration option ; (Closes: Trac#45)
. add support for capturing the package debconf selection states using
debconf-get-selections
. fixed catifexec function to actually work, also now passes the arguments
given to catifexec() to the called command (Thanks John Hallam!)
version 0.9.5 -- December 2, 2007
backupninja changes
......
......@@ -188,10 +188,12 @@ catiffile () {
}
catifexec () {
echo $HASHES >> $sysreportfile
echo "# $STATUS" >> $sysreportfile
echo $HASHES >> $sysreportfile
$1 >> $sysreportfile 2>&1 || info "executing of $1 failed"
if [ -x $1 ]; then
echo $HASHES >> $sysreportfile
echo "# $STATUS" >> $sysreportfile
echo $HASHES >> $sysreportfile
$* >> $sysreportfile 2>&1 || info "executing of $1 failed"
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment