Last active
June 18, 2020 16:02
-
-
Save IndrekV/d7eede3e9213e544087eb62286955add to your computer and use it in GitHub Desktop.
Fixes issue with missing -T flag support for mv command in FreeBSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mv fix for shipit (replace the missing -T flag in FreeBSD) | |
mv() { | |
if [[ $1 == "-fT" ]]; then | |
rm $3 && command mv -f $2 $3 | |
else | |
command mv "$@" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment