remake.sh (408B)
1 #!/usr/bin/env sh 2 3 # Run it with REGULAR USER! 4 5 _pwd="$(pwd)" 6 while read line 7 do 8 # ignoram comentaris 9 first="$(echo "$line" | cut -c1-1)" 10 [ "$first" = "#" ] && continue 11 [ "$first" = "~" ] && line="$HOME$(echo "$line" | cut -c2-)" 12 13 if [ -d "$line" ]; then 14 cd "$line" 15 sudo make install clean 16 echo "Fet - $line" 17 cd "$_pwd" 18 fi 19 done < /opt/gcolors/makepkgs