Skip to content

Commit

Permalink
Added check to find out if custom directory is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayasimha Raghavan authored and Jayasimha Raghavan committed Feb 2, 2024
1 parent d0e3b9a commit 8152fcf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/custom-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,12 @@ jobs:
exit 1
fi

echo "GoTTY started successfully."
echo "GoTTY started successfully."

directory="/unskript/data/actions"
if [ -z "$(ls -A $directory)" ]; then
echo "$directory is empty as expected."
else
echo "$directory is not empty, custom legos are detected!"
exit 1
fi

0 comments on commit 8152fcf

Please sign in to comment.