Skip to content

Commit 5ffb68b

Browse files
committed
fix bash parameter pass to if block
1 parent 24f9c5a commit 5ffb68b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/countly.install.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
33
DATE=$(date +%Y-%m-%d:%H:%M:%S)
44
totalm=$(free -m | awk '/^Mem:/{print $2}')
55

6-
if ! [[ "$1" = 'gh' ]]; then
6+
GH_ACTIONS_TRIGGER=$1
7+
if ! [[ "$GH_ACTIONS_TRIGGER" = 'gh' ]]; then
78
if [[ "$DIR" = '/root'* ]]; then
89
echo "You cannot install Countly under /root. Suggested paths: /opt or /usr."
910
exit 1

0 commit comments

Comments
 (0)