[Lunar-commits] <lunar> Strip trailing / of dir type config variables
Peter de Ridder
peter at lunar-linux.org
Sun Jul 8 16:30:06 CEST 2012
commit 3e98c260a5b37f6fe9c62327127aa5774c07dadf
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Sun, 08 Jul 2012 07:30:06 -0700
URL: https://github.com/lunar-linux/lunar/commit/3e98c260a5b37f6fe9c62327127aa5774c07dadf
Strip trailing / of dir type config variables
---
etc/config +4/-0
1 files changed, 4 insertions (+), 0 deletions (-)
--- a/etc/config
+++ b/etc/config
@@ -124,6 +124,10 @@ if [ -s "$LOCAL_CONFIG" ] ; then
. $LOCAL_CONFIG
fi
+for DIR_VAR in CONFIG_CACHE DEPENDS_CONFIG BUILD_DIRECTORY DOCUMENT_DIRECTORY DEFAULT_PREFIX MOONBASE FUNCTIONS MENUS PLUGIN_DIR SOUND_DIRECTORY INSTALL_LOGS COMPILE_LOGS MD5SUM_LOGS INSTALL_CACHE SOURCE_CACHE TMPDIR ; do
+ eval $DIR_VAR=\${$DIR_VAR/%\\/}
+done
+
sound $SOUND
color $COLOR
More information about the Lunar-commits
mailing list