From 4f644b85c377107a3e43770326af716431244979 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 23 Nov 2022 13:47:35 +1000 Subject: Oops, .git is a directory, not a file. --- update_apt-panopticon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update_apt-panopticon') diff --git a/update_apt-panopticon b/update_apt-panopticon index 219d86a..8edb43d 100755 --- a/update_apt-panopticon +++ b/update_apt-panopticon @@ -1,12 +1,12 @@ #!/bin/bash cd /var/www/html/apt-panopticon/apt-panopticon_cgp -if [ -f .git ] ; then +if [ -d .git ] ; then git pull > /dev/null chown -R www-data:www-data * fi cd /var/www/html/apt-panopticon/apt-panopticon -if [ -f .git ] ; then +if [ -d .git ] ; then git pull > /dev/null chown -R www-data:www-data * fi -- cgit v1.1