'In Gitlab-ci.yml How to delete mapped drive if exists else not

stages:

  • test

setup: tags: - xyz stage: test script: - "net use Z: /delete"

how to put if condition to handle "if drive exists then delete"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source