diff options
author | Ryan Kavanagh <rak@rak.ac> | 2020-09-11 12:04:20 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2020-09-11 12:04:20 -0400 |
commit | 2aee2d37905b27fba9cc93db65e7deb247e895bd (patch) | |
tree | 33ff3e7f538865b2659ba9af12cefeab81730cec | |
parent | Better error handling, and a verbose option (diff) |
ptmp: handle files in other directories
-rwxr-xr-x | ptmp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}" |