X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=cmd%2Fimport-rsnapshot-cmd.sh;h=91f711e19e10f817d83a38f1eb2fc990ebe23f36;hp=6ab398419a32b66d53a5e09c6e10b0b778cbf519;hb=3c64b5788c3e6b10528a81285b71da2edbed8950;hpb=3fa656946d28bb8cac061b745e2edc26bc2d56ae diff --git a/cmd/import-rsnapshot-cmd.sh b/cmd/import-rsnapshot-cmd.sh index 6ab3984..91f711e 100755 --- a/cmd/import-rsnapshot-cmd.sh +++ b/cmd/import-rsnapshot-cmd.sh @@ -1,6 +1,8 @@ #!/bin/sh # Does an import of a rsnapshot archive. +cmd_dir="$(cd "$(dirname "$0")" && pwd)" || exit $? + usage() { echo "Usage: bup import-rsnapshot [-n]" \ " []" @@ -16,7 +18,7 @@ done bup() { - $DRY_RUN "${BUP_MAIN_EXE:=bup}" "$@" + $DRY_RUN "$cmd_dir/bup" "$@" } SNAPSHOT_ROOT=$1