wip
This commit is contained in:
16
config.d/rusty-pipe.d/package-and-distribute.sh
Normal file
16
config.d/rusty-pipe.d/package-and-distribute.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#! /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"
|
||||
|
||||
Reference in New Issue
Block a user