From 954c285a95362b8a09cbe0cf4394eae4d49d1fc6 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 8 Jan 2013 20:06:34 -0200 Subject: 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 --- scripts/qtchooser.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3