- Many fixes to sourcing, now will always resolve to base dir.
- All scripts are again `sh` compatible. - Binbox overhaul, symlinks finally work just like `busybox`. - Error checking to some files like `sw` and `own`. TODO: Make it pretty and make `short` already.
This commit is contained in:
parent
b5c8a3f894
commit
0912f2d3d4
13 changed files with 1143 additions and 33 deletions
15
own
15
own
|
|
@ -1,4 +1,17 @@
|
|||
#!/bin/sh
|
||||
# Simple program that changes ownership to the current
|
||||
# user, recursively.
|
||||
sudo chown -R $(whoami):$(whoami) $1
|
||||
|
||||
DAISY_INTERNAL=1
|
||||
. $(dirname $(realpath $0))/daisy.source
|
||||
|
||||
if [[ $@ == '' ]];
|
||||
then
|
||||
echo "$DAISY_BIN: Used to quickly take ownership of files/folders."
|
||||
echo "Requires sudo. If sudo is not installed, this tool will fai."
|
||||
echo "Usage: $DAISY_BIN <folders or files>"
|
||||
echo "Means: chown -R <youruser>:<youruser> <folders or files>"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
sudo chown -R $(whoami):$(whoami) $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue