Skip to content

Commit

Permalink
try for file in $files
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Feb 24, 2024
1 parent 6d7a878 commit 3f0d019
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/Package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,15 @@ jobs:
pwd
ls -la
echo "get files"
# files=$(find . -name '*.py')
$(find . -name '*.py') | while IFS='' read -r file
files=$(find . -name '*.py')
# $(find . -name '*.py') | while IFS='' read -r file
for file in $files
do
echo "version variable : $file"
sed -i -e "s/version = \"[^\"]*\"/version = \"${version}\"/" "$file"
sed -i -e "s/version=\"[^\"]*\"/version = \"${version}\"/" "$file"
sed -i -e "s/# Version .*/# Version ${version}/"
echo "version comment : $file"
sed -i -e "s/# Version .*/# Version ${version}/" "$file"
done
# echo "version variable"
# sed -i -e "s/version = \"[^\"]*\"/version = \"${version}\"/" "$(find . -name '*.py')"
Expand Down

0 comments on commit 3f0d019

Please sign in to comment.