]> git.proxmox.com Git - mirror_zfs.git/commit
Various zimport.sh fixes
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Apr 2014 23:06:24 +0000 (16:06 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 17 Apr 2014 16:30:55 +0000 (09:30 -0700)
commite0b8f6290216a3d10af008a160617d89517fc631
treee1d317957606d90a1cd348a02736ea207f0d9d32
parentb066274a773b8dcac329786f95a2e4ea52a291a1
Various zimport.sh fixes

1) $SPLSRC and $SRCDIR should be changed to $SRC_DIR.  These are
   vestiges of an earlier version of the script and were missed when
   it was updated.  Additionally ensure the directory is created.

2) The 'fail' function should take an integer argument for the
   error code to return.  Otherwise 0 (success) will be mistakenly
   returned and errors will we incorrectly suppressed.  The error
   code should be meaningful enough to determine where the script
   failed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
scripts/zimport.sh