From 27c4eed56c07d39d2be76ce33c46fe5f339a798e Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 15 Jul 2016 22:33:02 +0200 Subject: Fix argument for fish version of qcd test would error out, it needs the parenthesis. Using -l for set is another bug, it would simply create a variable inside the if block scope instead of modifying the outer one. Change-Id: I09cd12cf8eeca0c23747a42d556a718b5faba27b Reviewed-by: Thiago Macieira --- scripts/qtchooser.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/qtchooser.fish b/scripts/qtchooser.fish index fc9236f..c6fe76b 100644 --- a/scripts/qtchooser.fish +++ b/scripts/qtchooser.fish @@ -112,8 +112,8 @@ function qcd return 1 end set -l DIR $QTDIR - if test count $argv -ge 1 - set -l DIR $DIR/$argv[1] + if test (count $argv) -ge 1 + set DIR $DIR/$argv[1] end cd $DIR end -- cgit v1.2.3