Go to repository

Function ifWindows

Takes two scripts as a string and returns the first if the current environment is windows, and the second if the current environment is not windows

Parameters

  • script: string

    the script to use for windows

  • altScript: string

    the script to use for non-windows

Returns string

The bash script, first if system is windows, second if not.