Skip to content

Commit

Permalink
Merge pull request #7 from flotiq/hotfix/fix-clean-command-unix
Browse files Browse the repository at this point in the history
Fix the clean_duplicate_import.sh command to work on Unix/Linux
  • Loading branch information
KrzysztofBrylski authored May 9, 2024
2 parents fec0bc3 + 6f35672 commit 5fb3290
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ To generate a set of `d.ts` files for Typescript follow these steps:

This will render the declarations in the `flotiqApi/dist` folder.

## Developing

To start developing this project, follow these steps:

1. Clone the repository `git clone [email protected]:flotiq/flotiq-codegen-ts.git`
2. Install dependencies `yarn install`
3. Run the project `yarn start`

## Collaborating

If you wish to talk with us about this project, feel free to hop on our [![Discord Chat](https://img.shields.io/discord/682699728454025410.svg)](https://discord.gg/FwXcHnX).
Expand Down
3 changes: 2 additions & 1 deletion clean_duplicate_import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ escaped_delete_line=$(printf '%s\n' "$delete_line" | sed 's:[][\/.^$*]:\\&:g')

for file in $file_patterns; do
if grep -Fq "$delete_line" "$file"; then
sed -i '' "/$escaped_delete_line/d" "$file"
sed -i.old "/$escaped_delete_line/d" "$file"
rm "${file}.old"
fi
done

0 comments on commit 5fb3290

Please sign in to comment.