File tree 2 files changed +25
-3
lines changed
2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change
1
+ .git
2
+ .github
3
+ .gitignore
4
+ .idea
5
+ LICENSE
6
+ README.md
7
+ action.yml
8
+ tests
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ log_error() {
7
7
8
8
install_driftctl () {
9
9
echo " Installing dctlenv"
10
- git clone --depth 1 --branch v0.1.3 https://github.com/wbeuil/dctlenv ~ /.dctlenv
10
+ git clone --depth 1 --branch v0.1.4 https://github.com/wbeuil/dctlenv ~ /.dctlenv
11
11
export PATH=" $HOME /.dctlenv/bin:$PATH "
12
12
gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 0xACC776A79C824EBD
13
13
14
14
echo " Downloading driftctl:$version "
15
- DCTLENV_PGP=1 dctlenv use $version
15
+ DCTLENV_PGP=1 DCTLENV_CURL=1 dctlenv use $version
16
16
}
17
17
18
18
parse_inputs () {
@@ -24,11 +24,25 @@ parse_inputs() {
24
24
fi
25
25
}
26
26
27
+ quiet_flag () {
28
+ case " ${version/ v/ } " in
29
+ " 0.1.0" |" 0.1.1" |" 0.2.0" |" 0.2.1" |" 0.2.2" |" 0.2.3" |" 0.3.0" |" 0.3.1" |" 0.4.0" |" 0.5.0" |" 0.6.0" )
30
+ ;;
31
+ * )
32
+ qflag=" --quiet"
33
+ ;;
34
+ esac
35
+ }
36
+
27
37
# First we need to parse inputs
28
38
parse_inputs
29
39
30
40
# Then we install the requested driftctl binary
31
41
install_driftctl
32
42
43
+ # We check if the version of driftctl needs the quiet flag
44
+ qflag=" "
45
+ quiet_flag
46
+
33
47
# Finally we run the scan command
34
- driftctl scan
48
+ driftctl scan $qflag
You can’t perform that action at this time.
0 commit comments