15 lines
202 B
Bash
Executable File
15 lines
202 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
name="$(basename $1)"
|
|
|
|
outDir="${2:-..}"
|
|
pushd "${outDir}"
|
|
outDir=`pwd`
|
|
popd
|
|
|
|
echo $name
|
|
|
|
cd $1
|
|
rm -f "${outDir}/${name}.tar.gz"
|
|
tar --exclude=".*" -vczf "${outDir}/${name}.tar.gz" *
|