Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
57cdcb4c
Commit
57cdcb4c
authored
Sep 11, 2016
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid looping over themes and modules
parent
7f26c62a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
24 deletions
+6
-24
travis.sh
travis.sh
+6
-24
No files found.
travis.sh
View file @
57cdcb4c
#!/usr/bin/env bash
#!/usr/bin/env bash
# Loop over every module and theme to reset it to the original changes
# Reset Modules and Themes to their original state after composer has run
cd
Modules
for
D
in
`
find
.
-maxdepth
1
-mindepth
1
-type
d
`
do
module
=
`
echo
"
$D
"
|
sed
-e
"s/^.
\/
//"
`
rm
-rf
$module
git reset HEAD
$module
sleep
.1
git checkout
--
$module
done
cd
../Themes/
for
D
in
`
find
.
-maxdepth
1
-mindepth
1
-type
d
`
do
theme
=
`
echo
"
$D
"
|
sed
-e
"s/^.
\/
//"
`
rm
-rf
$theme
git reset HEAD
$theme
sleep
.1
git checkout
--
$theme
done
rm
-rf
Modules Themes
git reset HEAD Modules
git reset HEAD Themes
git checkout
--
Modules
git checkout
--
Themes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment