dotfiles/.local/bin/scripts/own

3 lines
135 B
Bash
Executable file

#!/bin/sh
# Recursively take ownership of the given files or the current directory
sudo chown -R --preserve-root $USER:$USER "${@:-.}"