Use /bin/bash instead of /bin/sh
When you shell script run in a trouble like:
[: 10: y: unexpected operator
Try use
#!/bin/bash
instead of
#!/bin/sh
Written by dennis zhuang
Related protips
1 Response
Can try /usr/bin/env bash
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#