This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

shell quoting safety

  • Loading branch information...
rtomayko committed Mar 16, 2010
1 parent 578b0d4 commit 496b5897de9a9746a4279da5692a634fc09356d7
Showing with 3 additions and 3 deletions.
  1. +3 −3 rpg-build.sh
View
@@ -18,14 +18,14 @@ exit 0
find "$path/ext" -name "extconf.rb" |
while read file
do
- heed "$(basename $path) $(basename $(dirname $file))"
- cd $(dirname $file)
+ heed "$(basename "$path") $(basename $(dirname "$file"))"
+ cd "$(dirname "$file")"
if (ruby extconf.rb &&
{ make clean || true; } &&
make) 1> build.log 2>&1
then
$RPGSHOWBUILD && cat build.log 1>&2
- find "$(pwd)" -name "*.$(ruby_dlext)"
+ find "$path" -name "*.$(ruby_dlext)"
else
cat build.log 1>&2
fi

0 comments on commit 496b589

Please sign in to comment.