Skip to content

Commit

Permalink
fix: use ls -1 (the number one not the letter L)
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro committed Nov 29, 2023
1 parent dc9e923 commit d903719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/automation/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ function err() {
msg "$*" 1>&2
}

COUNT_CATALOGS=$(ls -l catalogs | grep ^- | wc -l)
COUNT_CATALOG_MD=$(ls -l md_catalogs | grep ^- | wc -l)
COUNT_CATALOGS=$(ls -1 catalogs | wc -l)
COUNT_CATALOG_MD=$(ls -1 md_catalogs | wc -l)
if [ "$COUNT_CATALOGS" == "0" ] || [ "$COUNT_CATALOG_MD" == "0" ]
then
echo "no catalog or markdown present -> nothing to do"
Expand Down
6 changes: 3 additions & 3 deletions scripts/automation/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source config.env

COUNT_CATALOGS=$(ls -l catalogs | grep ^- | wc -l)
COUNT_CATALOG_MD=$(ls -l md_catalogs | grep ^- | wc -l)
COUNT_CATALOGS=$(ls -1 catalogs | wc -l)
COUNT_CATALOG_MD=$(ls -1 md_catalogs | wc -l)
if [ "$COUNT_CATALOGS" == "0" ] || [ "$COUNT_CATALOG_MD" == "0" ]
then
echo "no catalog or markdown present -> nothing to do"
Expand All @@ -13,7 +13,7 @@ else
export VERSION_TAG="$version_tag"
echo "VERSION_TAG=${VERSION_TAG}" >> $GITHUB_ENV
# There is no md but json has at least one control
COUNT=$(ls -l md_catalogs | grep ^- | wc -l)
COUNT=$(ls -1 md_catalogs | wc -l)
if [ $COUNT -lt 1 ]
then
./scripts/automation/regenerate_catalogs.sh
Expand Down

0 comments on commit d903719

Please sign in to comment.