mvparent: fix moving several dirs with relative paths

Moving several directories with relative paths did not work because the
script was not going back to its original working directory.
master
Matteo Cypriani 3 years ago
parent d321ec9761
commit bf675c1808

@ -1,6 +1,6 @@
#!/bin/sh
#
# mvparent.sh, Copyright © 2007, 2010 Matteo Cypriani
# mvparent.sh, Copyright © 2007, 2010, 2020 Matteo Cypriani
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
@ -49,6 +49,7 @@ while [ -n "$1" ] ; do
fi
rmdir "$target"
cd "$OLDPWD"
done
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

Loading…
Cancel
Save