Skip to content

Instantly share code, notes, and snippets.

@IndrekV
Last active June 18, 2020 16:02
Show Gist options
  • Save IndrekV/d7eede3e9213e544087eb62286955add to your computer and use it in GitHub Desktop.
Save IndrekV/d7eede3e9213e544087eb62286955add to your computer and use it in GitHub Desktop.
Fixes issue with missing -T flag support for mv command in FreeBSD
# 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