diff options
-rwxr-xr-x | ptmp | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -28,11 +28,15 @@ do done shift `expr $OPTIND - 1` -PAD=$(md5sum $1 | cut -f1 -d' ') -BASE=$(basename $1) +FILE="$@" + +PAD=$(md5sum "${FILE}" | cut -f1 -d' ') +BASE=$(basename "${FILE}") DEST_NAME="${PAD}.${BASE}${OPT_SUFFIX}" -scp $1 "${DEST_DIR}/${DEST_NAME}" +echo "${DEST_NAME}" + +scp "${FILE}" "${DEST_DIR}/${DEST_NAME}" echo "https://rak.ac/~tmp/${DEST_NAME}" |