浏览代码

Fix bashism

Tianon Gravi 6 年之前
父节点
当前提交
248e071388
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bashbrew/bashbrew-entrypoint.sh

+ 1 - 1
bashbrew/bashbrew-entrypoint.sh

@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-if [ "${1:0:1}" = '-' ]; then
+if [ "${1#-}" != "$1" ]; then
 	set -- bashbrew "$@"
 fi