diff options
author | Andrew Cady <d@jerkface.net> | 2020-09-21 12:40:19 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-09-21 12:46:34 -0400 |
commit | 78a28bc7e193773ab2cdae67385274cd380fd23a (patch) | |
tree | f084ccf39db01225339b9abde27c2b335a378c48 | |
parent | 2b879f461f83c1938e1787f0f1cbdd1233fac41e (diff) |
auto-pull upstream
-rw-r--r-- | selfpublish.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/selfpublish.sh b/selfpublish.sh index ac5ad09..11d4183 100644 --- a/selfpublish.sh +++ b/selfpublish.sh | |||
@@ -555,6 +555,8 @@ write_cgit_config() | |||
555 | mkdir -p "$cgit_scan_dir" | 555 | mkdir -p "$cgit_scan_dir" |
556 | (cd "$cgit_scan_dir" | 556 | (cd "$cgit_scan_dir" |
557 | git clone --bare "$UPSTREAM" selfpublish.sh) | 557 | git clone --bare "$UPSTREAM" selfpublish.sh) |
558 | else | ||
559 | GIT_DIR="$cgit_scan_dir"/selfpublish.sh git fetch --all | ||
558 | fi | 560 | fi |
559 | line="scan-path=$cgit_scan_dir" | 561 | line="scan-path=$cgit_scan_dir" |
560 | grep -qxF "$line" /etc/cgitrc || printf '%s\n' "$line" >> /etc/cgitrc | 562 | grep -qxF "$line" /etc/cgitrc || printf '%s\n' "$line" >> /etc/cgitrc |