Default Helpers: allow link on full directories

This commit is contained in:
ViViDboarder 2015-06-03 13:27:22 -07:00
parent 0c04d66549
commit d5beb3623a

View File

@ -321,6 +321,8 @@ link () {
if [ -f "$src" ]; then if [ -f "$src" ]; then
src="$src" src="$src"
elif [ -d "$src" ]; then
src="$src"
elif [ -f "$cookbook_assets_source" ]; then elif [ -f "$cookbook_assets_source" ]; then
src="$cookbook_assets_source" src="$cookbook_assets_source"
elif [ -f $default_assets_source ]; then elif [ -f $default_assets_source ]; then
@ -347,6 +349,8 @@ try_link () {
if [ -f "$src" ]; then if [ -f "$src" ]; then
src="$src" src="$src"
elif [ -d "$src" ]; then
src="$src"
elif [ -f "$cookbook_assets_source" ]; then elif [ -f "$cookbook_assets_source" ]; then
src="$cookbook_assets_source" src="$cookbook_assets_source"
elif [ -f $default_assets_source ]; then elif [ -f $default_assets_source ]; then