various scripts I use to make my life easier

make it not run in the background

Changed files
+2 -9
+2 -9
post-receive
···
exit 0
fi
-
sync_repo() {
-
git push --mirror "$REPO_URL" >> "$LOGFILE" 2>&1
-
}
-
-
# make sure the sync occurs in the background
-
nohup bash -c "
-
cd \"$REPO_PATH\" || exit 1
-
git push --mirror \"$REPO_URL\" >> \"$LOGFILE\" 2>&1
-
" > /dev/nul 2>&1 &
+
echo "syncing $REPO_PATH" >> "$LOGFILE"
+
git push --mirror "$REPO_URL" >> "$LOGFILE" 2>&1
# vim: filetype=sh