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

Merge pull request #32 from richmeyers/package-install-empty-dirs

Fix rpg-package-install when gem contains empty dirs in lib.
  • Loading branch information...
rtomayko committed Jan 2, 2012
2 parents 24e330a + 8f1f43d commit 9ac03fe2e1b4427ed61496ae0ca4b7aeed12ee2c
Showing with 6 additions and 1 deletion.
  1. +6 −1 rpg-package-install.sh
View
@@ -51,7 +51,12 @@ installdir () {
mkdir -p "$2"
for file in "$1"/*
do
- if test -f "$file"
+ if ! test -e "$file"
+ then
+ # no files in directory - * was not expanded
+ :
+
+ elif test -f "$file"
then # link dest to source
installfile "$file" "$2/$(basename $file)"
echo "$2/$(basename $file)"

0 comments on commit 9ac03fe

Please sign in to comment.