Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #32 from richmeyers/package-install-empty-dirs
Browse files Browse the repository at this point in the history
Fix rpg-package-install when gem contains empty dirs in lib.
  • Loading branch information
rtomayko committed Jan 2, 2012
2 parents 24e330a + 8f1f43d commit 9ac03fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rpg-package-install.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ installdir () {
mkdir -p "$2" mkdir -p "$2"
for file in "$1"/* for file in "$1"/*
do 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 then # link dest to source
installfile "$file" "$2/$(basename $file)" installfile "$file" "$2/$(basename $file)"
echo "$2/$(basename $file)" echo "$2/$(basename $file)"
Expand Down

0 comments on commit 9ac03fe

Please sign in to comment.