mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
63c72e6c24
PR: 163444 Submitted by: Jan Beich <jbeich@tormail.net>
11 lines
220 B
Bash
11 lines
220 B
Bash
--- mvtu.sh~
|
|
+++ mvtu.sh
|
|
@@ -5,6 +5,7 @@ rm -f "$2"
|
|
for i in "$1.tu" "$1.t00.tu" "$1.001t.tu"
|
|
do
|
|
test -f "$i" && mv -f "$i" "$2"
|
|
+ test -f "${2%/*}/$i" && mv -f "${2%/*}/$i" "$2"
|
|
done
|
|
if ! test -f "$2"
|
|
then
|