dotfiles/.local/bin/scripts/bak
2021-01-23 19:55:22 +01:00

2 lines
107 B
Bash
Executable file

#!/bin/sh
test -e "$1.bak" && ((test -e "$1" && mv "$1" /tmp); mv -n "$1.bak" "$1") || mv -n "$1" "$1.bak"