Exclude install paths (eg .github)
This commit is contained in:
parent
9197e009a3
commit
9a1826ff87
1 changed files with 7 additions and 1 deletions
|
@ -44,6 +44,12 @@ perform_install()
|
||||||
-maxdepth 1 \
|
-maxdepth 1 \
|
||||||
! -name "." \
|
! -name "." \
|
||||||
! -name ".git" \
|
! -name ".git" \
|
||||||
|
! -name ".github" \
|
||||||
|
! -name ".gitignore" \
|
||||||
|
! -name ".gitattributes" \
|
||||||
|
! -name ".git-blame-ignore-revs" \
|
||||||
|
! -name ".cirrus-ci" \
|
||||||
|
! -name ".cirrus.yml" \
|
||||||
! -name ".gitignore" \
|
! -name ".gitignore" \
|
||||||
! -name ".hooks" \
|
! -name ".hooks" \
|
||||||
! -name ".arcconfig" \
|
! -name ".arcconfig" \
|
||||||
|
@ -60,7 +66,7 @@ run_install()
|
||||||
##
|
##
|
||||||
# main
|
# main
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "[-] This command must be run by root"
|
echo "[x] This command must be run by root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue