Skip to content

Commit fbb0d1f

Browse files
JKRMRDan Croak
authored andcommitted
Add compatibility for Bash 3.x
The `|&` is new in Bash 4, which is not the default on Macs. Given that Laptop is meant to be run on a fresh machine, `2>&1 |` is preferable, since it'll work on the Bash 3.x, which is what comes installed on new machines.
1 parent 2aa635f commit fbb0d1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Install
3232

3333
Read, then run the script:
3434

35-
bash <(curl -s https://raw.githubusercontent.com/thoughtbot/laptop/master/mac) |& tee ~/laptop.log
35+
bash <(curl -s https://raw.githubusercontent.com/thoughtbot/laptop/master/mac) 2>&1 | tee ~/laptop.log
3636

3737
### Linux
3838

3939
Read, then run the script:
4040

41-
bash <(wget -qO- https://raw.githubusercontent.com/thoughtbot/laptop/master/linux) |& tee ~/laptop.log
41+
bash <(wget -qO- https://raw.githubusercontent.com/thoughtbot/laptop/master/linux) 2>&1 | tee ~/laptop.log
4242

4343
Debugging
4444
---------

0 commit comments

Comments
 (0)