浏览代码

gimme: fix colors for gimmes

Kyle P Davis 9 年之前
父节点
当前提交
be66b43095
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gimme

+ 1 - 1
gimme

@@ -95,7 +95,7 @@ else # normal usage
 
 		if [[ -x "$P" ]]; then
 			[[ "$PATH" = "$LINK_DIR"* ]]  ||  export PATH="$LINK_DIR:$PATH"
-			if "$P" | sed "s/^/  /"; then
+			if script -q /dev/null "$P" / | sed "s/^/  /"; then
 				echo "# DONE: $GIMME"
 			else
 				OUCH=$?