Skip to content

Commit f3873f0

Browse files
feature: add shopt -s dotglob
1 parent 5bc976f commit f3873f0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

generator/templates/Deployment/_github/workflows/deploy.production.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
proxy_username: jumphost
7070
proxy_key: ${{ secrets.private_key }}
7171
script: |
72+
shopt -s dotglob
7273
cd ~/domains/example.com/public_html
7374
rm -rf ./old
7475
mkdir -p ./new
@@ -89,6 +90,7 @@ jobs:
8990
proxy_username: jumphost
9091
proxy_key: ${{ secrets.private_key }}
9192
script: |
93+
shopt -s dotglob
9294
cd ~/domains/example.com/public_html
9395
mv `\ls -1 ./ | grep -v "\<new\>" | grep -v "\<old\>" | grep -v "\<api\>"` ./old
9496
mv ./new/* ./

generator/templates/Deployment/_github/workflows/deploy.test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
- name: test jumphost connection
3333
run: ssh -T jumphost@jumphost.kingscode.nl
3434

35-
<%_ if (options.plugins.includes('fontawesomepro')){ _%>
35+
<%_ if (options.plugins.includes('fontawesomepro')){ _%>
3636
- name: build .npmrc
3737
env:
3838
FONT_AWESOME_TOKEN: ${{ secrets.font_awesome_token }}
3939
run: |
4040
echo "@fortawesome:registry=https://npm.fontawesome.com/" >> .npmrc
4141
echo "//npm.fontawesome.com/:_authToken=$FONT_AWESOME_TOKEN" >> .npmrc
42-
<%_ } _%>
42+
<%_ } _%>
4343

4444
- name: build application environment
4545
run: |
@@ -54,15 +54,15 @@ jobs:
5454
<%_ } _%>
5555
echo "VUE_APP_PUBLIC_PATH=/" >> .env.production
5656
57-
<%_ if (!options.addRobotsFile){ _%>
57+
<%_ if (!options.addRobotsFile){ _%>
5858
- name: setup robots.txt for disallowing search engines to visit the test env
5959
run: |
6060
cd public
6161
touch robots.txt
6262
echo "" > robots.txt
6363
echo "User-agent: *" >> robots.txt
6464
echo "Disallow: /" >> robots.txt
65-
<%_ } _%>
65+
<%_ } _%>
6666

6767
- name: build
6868
run: |
@@ -79,6 +79,7 @@ jobs:
7979
proxy_username: jumphost
8080
proxy_key: ${{ secrets.private_key }}
8181
script: |
82+
shopt -s dotglob
8283
cd ~/domains/example.com/public_html
8384
rm -rf ./old
8485
mkdir -p ./new
@@ -99,6 +100,7 @@ jobs:
99100
proxy_username: jumphost
100101
proxy_key: ${{ secrets.private_key }}
101102
script: |
103+
shopt -s dotglob
102104
cd ~/domains/example.com/public_html
103105
mv `\ls -1 ./ | grep -v "\<new\>" | grep -v "\<old\>" | grep -v "\<api\>"` ./old
104106
mv ./new/* ./

0 commit comments

Comments
 (0)