schatzlab / pseudohaploid

Create a pseudohaploid assembly from a partially resolved diploid assembly
32 stars 5 forks source link

set -o pipefail doesn't work in sh but works in bash #2

Closed conchoecia closed 5 years ago

conchoecia commented 5 years ago

The first few lines of create_pseudohaploid.sh are:

#!/bin/sh

set -o pipefail

but running the script returned the error set: Illegal option -o pipefail.

I changed the first line to:

#!/bin/bash

and everything worked fine. Ubuntu 16.04.

mschatz commented 5 years ago

Fixed. Good luck!