summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-01-08 20:06:34 -0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-01-09 10:39:00 +0100
commit954c285a95362b8a09cbe0cf4394eae4d49d1fc6 (patch)
tree00e5719029fd6658003c64446af507b5f5cc818d
parentb6baa4cf3b81a55133cebba161fd105826989734 (diff)
downloadqtchooser-954c285a95362b8a09cbe0cf4394eae4d49d1fc6.tar.gz
qtchooser-954c285a95362b8a09cbe0cf4394eae4d49d1fc6.tar.bz2
qtchooser-954c285a95362b8a09cbe0cf4394eae4d49d1fc6.zip
Fix sourcing with zsh
(%) tells zsh to expand prompt % escapes and %x is the name of the script or sourced file. Change-Id: I79abd727c55523575431834c65aa602154853f8a Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
-rw-r--r--scripts/qtchooser.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qtchooser.zsh b/scripts/qtchooser.zsh
index 42d449c..d1129c9 100644
--- a/scripts/qtchooser.zsh
+++ b/scripts/qtchooser.zsh
@@ -36,7 +36,7 @@
## $QT_END_LICENSE$
##
-source ${0%/*}/common.sh
+source ${${(%)$(echo %x)}%/*}/common.sh
function qt_env_removefrom()
{