-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas Ziegler
committed
Jan 15, 2021
1 parent
869d9ef
commit f4f1c29
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
.phpunit.result.cache | ||
/coverage/ | ||
nohup.out | ||
/composer.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
if [[ "$EUID" -ne 0 ]]; then | ||
cd "$(dirname "$0")" | ||
cd .. | ||
echo "find . -type f -name '*' | xargs chown ${USER}:${USER}" > temp.exec_as_sudo.sh | ||
echo "run subscript: this only works with sudo ... " | ||
echo "this will be executed:" | ||
echo "----------------------------------------" | ||
cat temp.exec_as_sudo.sh | ||
echo "----------------------------------------" | ||
sudo sh temp.exec_as_sudo.sh | ||
rm temp.exec_as_sudo.sh | ||
else | ||
echo "NEVER RUN THIS AS SUDO ... " | ||
echo "if you did already somehow, run this script again without sudo" | ||
fi | ||
|