File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ cd ${MAGENTO_ROOT}/pub && mv static/.htaccess static_htaccess.back && rm -rf sta
10
10
# clear integration tests tmp
11
11
cd ${MAGENTO_ROOT} /dev/tests/integration && mv tmp/.gitignore tmp_gitignore.back && rm -rf tmp && mkdir tmp && mv tmp_gitignore.back tmp/.gitignore
12
12
# clear unit tests tmp
13
- cd ${MAGENTO_ROOT} /dev/tests/unit && rm -rf tmp && mkdir tmp
13
+ cd ${MAGENTO_ROOT} /dev/tests/unit && mv tmp/.gitignore tmp_gitignore.back && rm -rf tmp && mkdir tmp && mv tmp_gitignore.back tmp/.gitignore
14
14
15
15
echo " Magento cache cleared."
Original file line number Diff line number Diff line change @@ -22,9 +22,14 @@ if [ ! -f ${composer_phar} ]; then
22
22
fi
23
23
24
24
# Configure composer credentials
25
+ auth_json_already_exists=0
26
+ if [ -f " ${current_dir} /auth.json" ]; then
27
+ auth_json_already_exists=1
28
+ fi
29
+
25
30
cd ${current_dir}
26
- if [ -f ${composer_auth_json} ]; then
27
- cp ${composer_auth_json} " ${PWD } /auth.json"
31
+ if [ ! ${auth_json_already_exists} = 1 ] && [ -f ${composer_auth_json} ]; then
32
+ cp ${composer_auth_json} " ${current_dir } /auth.json"
28
33
fi
29
34
30
35
host_os=$( bash " ${vagrant_dir} /scripts/host/get_host_os.sh" )
35
40
${php_executable} ${composer_phar} --ignore-platform-reqs " $@ "
36
41
fi
37
42
38
- if [ -f " ${PWD } /auth.json" ]; then
39
- rm " ${PWD } /auth.json"
43
+ if [ ! ${auth_json_already_exists} = 1 ] && [ -f " ${current_dir } /auth.json" ]; then
44
+ rm " ${current_dir } /auth.json"
40
45
fi
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
6
6
echo " Linux"
7
7
elif [ " $( expr substr $( uname -s) 1 5) " == " MINGW" ]; then
8
8
echo " Windows"
9
+ elif [ " $( expr substr $( uname -s) 1 6) " == " CYGWIN" ]; then
10
+ echo " Windows"
9
11
else
10
12
echo " Unknown host OS"
11
13
exit 255
You can’t perform that action at this time.
0 commit comments