1 2 3 4 5 6 7
#!/bin/bash [ ! -d prebuilt ] && git worktree add -f prebuilt prebuilt && exit 1 cd prebuilt git checkout -- . git pull