af9d3235e3
PR: ports/148428 Submitted by: Alex Kozlov (maintainer)
12 lines
389 B
Text
12 lines
389 B
Text
Index: create-lw-file
|
|
@@ -1,8 +1,8 @@
|
|
-#!/bin/bash
|
|
+#!/bin/sh
|
|
|
|
# put the files given on the command line into a tarball with the same name as the first file in that list. that first file gets overwritten.
|
|
files=$*
|
|
-tmpdir=`mktemp --quiet --directory /tmp/lw-tar.XXXXX `
|
|
+tmpdir=`mktemp -q -d /tmp/lw-tar.XXXXX `
|
|
file=`basename $1`
|
|
if [ "x$tmpdir" != "x" ]; then
|
|
cp $files $tmpdir
|