summaryrefslogtreecommitdiff
path: root/scripts/ipkg-build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ipkg-build')
-rw-r--r--scripts/ipkg-build4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index 378236b78..ec0e0cdef 100644
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -1,4 +1,4 @@
-#!/bin/sh -x
+#!/usr/bin/env bash
# ipkg-build -- construct a .ipk from a directory
# Carl Worth <cworth@east.isi.edu>
@@ -233,7 +233,7 @@ tmp_dir=$dest_dir/IPKG_BUILD.$$
mkdir $tmp_dir
echo $CONTROL > $tmp_dir/tarX
-( cd $pkg_dir && tar $ogargs -czf $tmp_dir/data.tar.gz . -X $tmp_dir/tarX )
+( cd $pkg_dir && tar $ogargs -X $tmp_dir/tarX -czf $tmp_dir/data.tar.gz . )
( cd $pkg_dir/$CONTROL && tar $ogargs -czf $tmp_dir/control.tar.gz . )
rm $tmp_dir/tarX