@@ -26,7 +26,7 @@ venv::raise() {
2626}
2727
2828venv::_check_if_help_requested () {
29- if [ " $1 " == " -h" ] || [ " $1 " = = " --help" ]; then
29+ if [ " $1 " = " -h" ] || [ " $1 " = " --help" ]; then
3030 return 0
3131 fi
3232 return 1
@@ -153,7 +153,7 @@ venv::install() {
153153 fi
154154
155155 local requirements_file
156- if [ -z " $1 " ] || [ " $1 " == " --skip-lock" ]; then
156+ if [ -z " $1 " ] || [ " $1 " = " --skip-lock" ]; then
157157 # If no argument passed
158158 requirements_file=" requirements.txt"
159159
@@ -169,7 +169,7 @@ venv::install() {
169169 fi
170170
171171 local skip_lock=false
172- if [ " $1 " == " --skip-lock" ]; then
172+ if [ " $1 " = " --skip-lock" ]; then
173173 skip_lock=true
174174 shift
175175 fi
@@ -178,7 +178,7 @@ venv::install() {
178178 pip install --require-virtualenv -r " ${requirements_file} " " $@ "
179179
180180 local lock_file=" ${requirements_file/ .txt/ .lock} " # Replace ".txt" with ".lock"
181- if " ${skip_lock} " || [ " ${requirements_file} " == " ${lock_file} " ]; then
181+ if " ${skip_lock} " || [ " ${requirements_file} " = " ${lock_file} " ]; then
182182 venv::color_echo " ${_yellow} " " Skipping locking packages to ${lock_file} "
183183 return 0
184184 fi
@@ -215,7 +215,7 @@ venv::lock() {
215215 if [ -z " $1 " ]; then
216216 lock_file=" requirements.lock"
217217
218- elif [[ " $1 " == * " ." * ]]; then
218+ elif [[ " $1 " = * " ." * ]]; then
219219 if venv::_check_lock_requirements_file " $1 " ; then
220220 lock_file=" $1 "
221221 shift
0 commit comments