Skip to content

Commit

Permalink
Code: Update replacing script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerit3787 committed Dec 16, 2024
1 parent 6d6cdf1 commit 275be41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ for i in ${!fileName[@]}; do
echo -e "File content is identical. No file replacement needed \n\n"
else
echo "File content for ${fileName[$i]} is not identical. Replacing file."
cp ./dist/${fileName[$i]} ./${fileName[$i]}
cp ./dist/${fileName[$i]} ../${fileName[$i]}
if [ $? -ne 0 ]; then
# The command failed, print an error message
echo "The file replacement failed with exit status $?"
Expand Down

0 comments on commit 275be41

Please sign in to comment.