Skip to content

Commit

Permalink
Fix template automation shell linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alessfg committed Feb 1, 2024
1 parent 6377093 commit 9f137ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/rename_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ do
a) owner=${OPTARG};;
n) name=${OPTARG};;
u) url=${OPTARG};;
d) ;;
*) ;;
esac
done

Expand All @@ -19,9 +21,9 @@ original_name="{{REPOSITORY_NAME}}"
original_url="{{REPOSITORY_URL}}"
for filename in $(git ls-files)
do
sed -i "s/$original_owner/$owner/g" $filename
sed -i "s/$original_name/$name/g" $filename
sed -i "s/$original_url/$url/g" $filename
sed -i "s/$original_owner/$owner/g" "$filename"
sed -i "s/$original_name/$name/g" "$filename"
sed -i "s/$original_url/$url/g" "$filename"
echo "Renamed $filename"
done

Expand Down

0 comments on commit 9f137ce

Please sign in to comment.