FriendlyNeighborhoodShane / MinMicroG-abuse-CI

Automatic MinMicroG builder for updatelys. DO NOT STAR. You will find constant unneccessary notifications in your mail whenever I play around with it.
83 stars 8 forks source link

I have a lot of problems #1

Closed FriendlyNeighborhoodShane closed 4 years ago

FriendlyNeighborhoodShane commented 4 years ago
func() {
  file="$1";
  shift 1;
  {
    {
      "@" 2>&3 | cat;
    } 3>&1 1>&2 | tee "$file";
  } 3>&2 2>&1 1>&3;
}

Shorten this for me

func() {
  file="$1";
  shift 1;
  {
    "$@" 3>&1 1>&2 2>&3 | tee "$file";
  } 3>&1 1>&2 2>&3;
}