aboutsummaryrefslogtreecommitdiff
path: root/system/zfs-auto-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'system/zfs-auto-snapshot')
-rw-r--r--system/zfs-auto-snapshot/zfs-auto-snapshot.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/zfs-auto-snapshot/zfs-auto-snapshot.SlackBuild b/system/zfs-auto-snapshot/zfs-auto-snapshot.SlackBuild
index 736f80e2e09c5..f66c76fd2a39d 100644
--- a/system/zfs-auto-snapshot/zfs-auto-snapshot.SlackBuild
+++ b/system/zfs-auto-snapshot/zfs-auto-snapshot.SlackBuild
@@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=zfs-auto-snapshot
VERSION=${VERSION:-1.2.4}
BUILD=${BUILD:-1}
@@ -36,7 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}