Skip to content

Commit

Permalink
Fix binary find
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed Apr 29, 2022
1 parent 406b5e2 commit 455ad39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ pkgs.mkShell {
'# \033[3mExtract HEX file\033[0m ------------------------------------------------------------------------------------ #\n' ;
(
'${coreutils}/bin/mkdir' -p "''${_ROOT_DIR}/.build" &&
'${coreutils}/bin/ls' "''${_ROOT_DIR}/QMK/.build"/*.hex "''${_ROOT_DIR}/QMK/.build"/*.bin |
'${findutils}/bin/find' "''${_ROOT_DIR}/QMK/.build" -type f -regextype awk -iregex '^.*\.(hex|bin)$' |
'${coreutils}/bin/head' -1 |
'${findutils}/bin/xargs' -i cp -f -- '{}' "''${_ROOT_DIR}/.build/firmware.hex" &&
'${coreutils}/bin/printf' 'Extracted .build/firmware.hex\n' ;
Expand Down

0 comments on commit 455ad39

Please sign in to comment.