dotfiles/.local/bin/bak
2021-01-07 12:01:15 +01:00

2 lines
85 B
Bash
Executable file

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