summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/X11R7.6')
-rwxr-xr-xxorg/X11R7.6/buildx.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/xorg/X11R7.6/buildx.sh b/xorg/X11R7.6/buildx.sh
index 74145e36..22dfe15f 100755
--- a/xorg/X11R7.6/buildx.sh
+++ b/xorg/X11R7.6/buildx.sh
@@ -59,10 +59,8 @@ remove_modules()
while IFS=: read mod_file mod_dir mod_args
do
- if [ -d build_dir/$mod_dir ]; then
- rm -rf build_dir/$mod_dir
- fi
- done < ../$data_file
+ (cd build_dir; [ -d $mod_dir ] && rm -rf $mod_dir)
+ done < $data_file
}
extract_it()