dotfiles/.local/bin/scripts/own

4 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 "${@:-.}"