Skip to content
Snippets Groups Projects

keygen in python, logging

Open Martin Tippmann requested to merge mtippmann/overleaf-delta:buw into main
4 files
+ 45
14
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
4
@@ -3,7 +3,7 @@ cd /ops
unzip overleaf.zip git.config
if [ ! -f git.config ]; then
2>&1 echo "No git.config found"
exit 1
exit 2
fi
GIVEN_URL=$(cat git.config | cut -d ';' -f 1 | tr -d '[:space:]')
@@ -11,7 +11,7 @@ IMPORTED_REGEX=$(echo $GIT_REGEX)
if [[ ! $GIVEN_URL =~ $IMPORTED_REGEX ]]; then
2>&1 echo "URL does not match regex"
exit 1
exit 3
fi
SSH_KEY_DATA=$(cat git.config | cut -d ';' -f 2 | tr -d '[:space:]')
@@ -32,7 +32,7 @@ echo "Pushed"
rm -rf /ops/*
if [[ $worked_push =~ "fatal" ]]; then
2>&1 echo "PUSH_GIT_FAILED"
exit 1
exit 4
fi
echo "PUSH_GIT_OK"
exit 0
\ No newline at end of file
exit 0
Loading