Skip to content

Commit 9001a5c

Browse files
committed
Store temporary project folder name into variable
1 parent efae566 commit 9001a5c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packaging.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,21 @@ echo "Please specify the release version number (e.g., 14.8.8)"
132132
read version
133133
if [ ! -z "$version" ]; then
134134
name="pH7Builder"
135-
git clone git@github.com:pH7Software/pH7-Social-Dating-CMS.git --depth=1
135+
tmp_project_folder="pH7-Social-Dating-CMS"
136136

137-
echo "Moving to 'pH7-Social-Dating-CMS/' folder."
138-
cd pH7-Social-Dating-CMS
137+
git clone git@github.com:pH7Software/pH7-Social-Dating-CMS.git $tmp_project_folder --depth=1
138+
139+
echo "Moving to '${tmp_project_folder}/' folder."
140+
cd $tmp_project_folder
139141

140142
run-packaging-cleanup
141143
zip -qr ../${name}-${version}.zip .
142144

143145
echo "Moving back to previous main folder '../'"
144146
cd ..
145147

146-
echo "Removing unnecessary 'pH7-Social-Dating-CMS/' folder."
147-
rm -rf pH7-Social-Dating-CMS
148+
echo "Removing unnecessary '${tmp_project_folder}/' folder."
149+
rm -rf $tmp_project_folder
148150

149151
echo "Done! pH7Builder has been successfully packaged. Ready to be distributed!"
150152
echo "The zip file is available here: ${PWD}/${name}-${version}.zip"

0 commit comments

Comments
 (0)