summaryrefslogtreecommitdiff
path: root/Library/move.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Library/move.sh')
-rwxr-xr-xLibrary/move.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/move.sh b/Library/move.sh
index 3cbe799..635c153 100755
--- a/Library/move.sh
+++ b/Library/move.sh
@@ -21,7 +21,7 @@ function mv_() {
src=$1
mkdir -p /var/stash
- dst=$(mktemp -d /var/stash/$(basename "${src}").XXXXXX)
+ dst=$(mktemp -d /var/stash/"${src##*/}".XXXXXX)
if [[ -e ${src} ]]; then
chmod --reference="${src}" "${dst}"