nsomar/Swiftline

Using pipeline commands in run

Opened this issue · 0 comments

If I try to do the following command:

let gitCommand = "git ls-remote --tags \(gitURL) | awk '{print $2}' | grep -v '{}' | awk -F'/' '{print $3}' | sort -n -t. -k1,1 -k2,2 -k3,3 | tail -n 1"
        let latestVersion = run(gitCommand).stdout

but it fails. it doesn't give any output and I don't know why. If I execute that command in my terminal it works perfectly fine. I'm not sure if it has to do with the pipelines or with the '