summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-07-15 22:33:02 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2016-07-17 08:50:16 +0000
commit27c4eed56c07d39d2be76ce33c46fe5f339a798e (patch)
tree1cd9590aee12d0d7c4aceb9b6555f772f8d557cf
parentfab25f16eb5c90e32a42c924b207c901f1b67d80 (diff)
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 <thiago.macieira@intel.com>
-rw-r--r--scripts/qtchooser.fish4
1 files 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