Download scripts/push from dumamai/java-fpm: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/dumamai/java-fpm/resolve/main/scripts/push
- Command line
-
hf download hf://spaces/dumamai/java-fpm/scripts/push
-
curl -L -o push https://huggingface.co/spaces/dumamai/java-fpm/resolve/main/scripts/push
382 Bytes
| #!/bin/bash | |
| timestamp() { | |
| date +"%D %T" | |
| } | |
| if [ -z "$GIT_EMAIL" ]; then | |
| echo "You need to pass the \$GIT_EMAIL variable to the container for this to work" | |
| exit | |
| fi | |
| if [ -z "$GIT_NAME" ]; then | |
| echo "You need to pass the \$GIT_NAME variable to the container for this to work" | |
| exit | |
| fi | |
| ts=$(timestamp) | |
| cd ${WEBROOT} | |
| git add . | |
| git commit -a -m "push from container $ts" | |
| git push | |