I have this script:
#!/bin/bash
# To replace a teacher
# Usage: gam-subst-prof user_out user_in
if [[ "$1" == "--help" || "$2" == "--help" || -z $1 || -z $2 ]]; then
echo "Este comando utiliza o GAMADV-XTD3 para substituir um utilizador nos grupos dos CT anuais."
echo "EX: gam-subst-prof user_out user_in"
exit 1
fi
gam print groups member $1 emailmatchpattern '^25.*' | gam csv - gam update group "~email" add user $2
gam print groups member $1 emailmatchpattern '^25.*' | gam csv - gam update group "~email" remove user $1
Starting some days ago (I have no idea which version it started with), I'm getting this error:
Waiting for 1 running process to finish before terminating, wait limit unlimited seconds
What could possibly go wrong?
Is it possible to make this script more efficient?
Thank you all.