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.
This commit is contained in:
Matteo Cypriani 2020-11-20 09:01:38 +01:00
parent d321ec9761
commit bf675c1808
1 changed files with 2 additions and 1 deletions

View File

@ -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