aboutsummaryrefslogtreecommitdiff
path: root/ptmp
diff options
context:
space:
mode:
Diffstat (limited to 'ptmp')
-rwxr-xr-xptmp3
1 files changed, 2 insertions, 1 deletions
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}"