X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=src%2Fninjahelper.in;h=0f5af82ebea5978079af72868858db566a66f989;hb=ca8ae79915bb9c891e2f6b5a3094ebfd3303442b;hp=104575944d4a376aae9e5ac9d54d800d2ce2221d;hpb=5c72b9d23c8233de3892c8fa88f927a7eb8165dc;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/src/ninjahelper.in b/src/ninjahelper.in index 1045759..0f5af82 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -23,7 +23,7 @@ function check_perms() { ## ## returns the next available file name given a file ## in the form @CFGDIR@/backup.d/10.sys -## sets variable $returned_filename +## sets variable $next_filename ## get_next_filename() { next_filename=$1 @@ -41,7 +41,7 @@ get_next_filename() { ## installs packages (passed in as $@) if not present ## require_packages() { - for pkg in "$@"; do + for pkg in "$@"; do installed=`dpkg -s $pkg | grep 'ok installed'` if [ -z "$installed" ]; then booleanBox "install $pkg?" "This backup action requires package $pkg. Do you want to install it now?"