Skip to content

Commit 26fd038

Browse files
committed
add script section to modify permissions for all genrated builds
1 parent aa6ce7a commit 26fd038

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/build_distributables.sh

+13
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,16 @@ echo "Cleared the dist/ folder."
4646

4747
mv $GOPATH/bin/* dist/
4848
echo "Moved all distributable folders to the dist/ directory."
49+
50+
#=======#
51+
# We change the permissions for all generated files to 777.
52+
#=======#
53+
for folder_to_check in $(ls dist/); do
54+
55+
files_to_rename=$(ls dist/$folder_to_check)
56+
for file_to_rename in ${files_to_rename[@]}; do
57+
chmod 777 dist/${folder_to_check}/${file_to_rename}
58+
done
59+
60+
done
61+
echo "Finished modifying permissions for all generated files."

0 commit comments

Comments
 (0)