Skip to content

Instantly share code, notes, and snippets.

View AlexanderLangguth's full-sized avatar

Alexander Langguth AlexanderLangguth

View GitHub Profile
@AlexanderLangguth
AlexanderLangguth / do-imports.hs
Created July 2, 2023 11:37
Script that executed godot 4 file import in headless mode until they fix it.
#!/bin/bash
set -euo pipefail
usage() {
echo "Usage: $0 -p 'path/to/.godot/imported' [ -c 'godot_editor_command'='godot --editor --headless --verbose' ] [ -t timeout_seconds=600 ] [ -i check_interval=5 ] [ -s #intervals_with_no_new_files=3 ]" 1>&2
}
exit_abnormal() {
usage
exit 1