mirror of
https://git.alemi.dev/gitshell.git
synced 2024-11-23 07:54:50 +01:00
fix: removed outdated check
This commit is contained in:
parent
2920a0604a
commit
ec81943810
1 changed files with 0 additions and 5 deletions
5
hide
5
hide
|
@ -15,11 +15,6 @@ if [[ "$REPONAME" == *.git ]]; then
|
||||||
REPONAME=$(echo "$REPONAME" | sed 's/\.git$//')
|
REPONAME=$(echo "$REPONAME" | sed 's/\.git$//')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "/srv/git/.public/$REPONAME" ]; then
|
|
||||||
echo "[!] repository isn't public"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
git config -f "/srv/git/$REPOSITORY/config" cgit.ignore 1
|
git config -f "/srv/git/$REPOSITORY/config" cgit.ignore 1
|
||||||
|
|
||||||
echo "[#] made $REPONAME hidden"
|
echo "[#] made $REPONAME hidden"
|
||||||
|
|
Loading…
Reference in a new issue