17 lines
292 B
Bash
17 lines
292 B
Bash
#! /bin/bash
|
|
|
|
echo source ./package.sh
|
|
|
|
set -e
|
|
|
|
cd ${based%/*}
|
|
tar_f=${based##*/}.tar
|
|
rm -f "$tar_f"
|
|
tar -cf "$tar_f" ${based##*/}
|
|
cleanup() { rm "$tar_f"; }
|
|
trap cleanup EXIT
|
|
|
|
scp_scratch.sh "$tar_f" squeaky2x3@192.168.0.86:/volume1/video/FTP/
|
|
ssh_scratch.sh ls /volume1/video/FTP/"$tar_f"
|
|
|