Skip to content

Instantly share code, notes, and snippets.

@aseering
Created December 13, 2016 14:46
Show Gist options
  • Save aseering/12270850c4186dfabcc2fae0ad690a49 to your computer and use it in GitHub Desktop.
Save aseering/12270850c4186dfabcc2fae0ad690a49 to your computer and use it in GitHub Desktop.
#!/bin/bash
WIN_ARG=""
until [[ "$1" != *"="* ]]; do
WIN_ARG="$WIN_ARG SET $1 &&"
shift
done
WIN_ARG="$WIN_ARG $@"
echo "Running: $WIN_ARG"
exec cmd.exe /c "$WIN_ARG"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment