Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
🎡 🎡 Another (IF STATEMENT) bites the dust! 🎢 🎢 (pt. II)
  Had to reverse the logic on this one.

  References: #934a446

  /cc @tmornini @brandondees @btakita #YAGNI 😎
  • Loading branch information
snuggs committed Aug 22, 2019
1 parent 93ea446 commit 58acdaa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bin/snuggsi
Expand Up @@ -30,7 +30,8 @@ function run {
source $SNUGGSI/bin/.arguments

local \
executable=$1
executable=$1 \
resources=${ARGUMENTS[@]}

test ! -f $executable \
|| test ${executable##*/} == snuggsi \
Expand All @@ -43,15 +44,14 @@ function run {
printf ' πŸ“ %s\n' "${resources[@]}"
echo

for resource in "${ARGUMENTS[@]:-. }" # Default o curren directory
for resource in "${resources[@]:-. }" # Default o curren directory
do
if test -d $resource
then
echo " πŸ‘‰ πŸ“‚ $resource ════════════════════════════════════════════"
$executable $resource
else
echo "πŸ”΄ $resource RESOURCE DIRECTORY NOT FOUND !"
fi
test ! -d $resource \
&& echo "πŸ”΄ $resource RESOURCE DIRECTORY NOT FOUND !" \
&& continue

echo " πŸ‘‰ πŸ“‚ $resource ════════════════════════════════════════════"
$executable $resource
done
}

Expand Down

1 comment on commit 58acdaa

@vercel
Copy link

@vercel vercel bot commented on 58acdaa Aug 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZEIT Now cannot deploy this project to production due to following domain related issues:

  • snuggsi.com(for alias snuggsi.com) is not found inside your account. Add it.

Please sign in to comment.