From 2aee2d37905b27fba9cc93db65e7deb247e895bd Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 11 Sep 2020 12:04:20 -0400 Subject: ptmp: handle files in other directories --- ptmp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ptmp') diff --git a/ptmp b/ptmp index f54633f..125d8dc 100755 --- a/ptmp +++ b/ptmp @@ -29,8 +29,9 @@ done shift `expr $OPTIND - 1` PAD=$(md5sum $1 | cut -f1 -d' ') +BASE=$(basename $1) -DEST_NAME="${PAD}.$1${OPT_SUFFIX}" +DEST_NAME="${PAD}.${BASE}${OPT_SUFFIX}" scp $1 "${DEST_DIR}/${DEST_NAME}" -- cgit v1.2.3