Skip to content

Commit

Permalink
format.sh: Fix compatibility issue with find command in script
Browse files Browse the repository at this point in the history
Updated the find command in the script to include a starting path
 ('.'). This change ensures compatibility across different
Unix-like systems, including macOS and Linux.

The script now explicitly starts the search from the current
directory, addressing the previously encountered 'illegal option'
error on macOS while maintaining functionality on Linux.
  • Loading branch information
calcitem committed Jan 27, 2024
1 parent a128f04 commit e626ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ clang-format -i src/ui/qt/*.h
clang-format -i src/ui/qt/*.cpp

cd src/ui/flutter_app/lib
find -name "*.dart" | xargs dart format --fix
find . -name "*.dart" | xargs dart format --fix

cd ../test
find -name "*.dart" | xargs dart format --fix
find . -name "*.dart" | xargs dart format --fix

cd ../../../../

Expand Down
3 changes: 1 addition & 2 deletions src/hashmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ constexpr size_t HASH_SIZE_DEFAULT = 1031; // A prime number as key size gives a
// buckets

// Concurrent Thread Safe Library
namespace CTSL
{
namespace CTSL {
// The class representing the key map.
// It is expected for user defined types, the key function will be provided.
// By default, the std::key function will be used
Expand Down

0 comments on commit e626ec1

Please sign in to comment.