Choose default script interpreter

Kirill Müller's Avatar

Kirill Müller

07 Aug, 2014 12:44 AM

Hi

If I only use PowerShell in a project that is configured through an appveyor.yml, do I really have to prefix each line with ps:? If yes, it'd be great if the default interpreter could be set in the appveyor.yml file. Thanks for considering.

Cheers

Kirill

  1. Support Staff 1 Posted by Feodor Fitsner on 07 Aug, 2014 01:26 AM

    Feodor Fitsner's Avatar

    HI Kirill,

    You can prefix once a multi-line script, like that:

    ps: |
          Script line 1
          Script line 2
          ...
    
  2. 2 Posted by Kirill Müller on 07 Aug, 2014 07:47 PM

    Kirill Müller's Avatar

    Thanks, Feodor -- this works, but now during the build, Script line 2 (blue) is printed before the (white) output of Script line 1... Any ideas?

    Cheers

    Kirill

  3. Support Staff 3 Posted by Feodor Fitsner on 07 Aug, 2014 07:54 PM

    Feodor Fitsner's Avatar

    Oh, because it's running as a single script, not line-by-line.

    - Feodor

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:46 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac