Remove unnecessary [[
This commit is contained in:
parent
88ee3f09fb
commit
79f7aae073
1 changed files with 2 additions and 2 deletions
4
yadm
4
yadm
|
@ -1492,11 +1492,11 @@ function process_global_args() {
|
||||||
|
|
||||||
function qualify_path() {
|
function qualify_path() {
|
||||||
local path="$1"
|
local path="$1"
|
||||||
if [[ -z "$path" ]]; then
|
if [ -z "$path" ]; then
|
||||||
error_out "You can't specify an empty $2 path"
|
error_out "You can't specify an empty $2 path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$path" = "." ]]; then
|
if [ "$path" = "." ]; then
|
||||||
path="$PWD"
|
path="$PWD"
|
||||||
elif [[ "$path" != /* ]]; then
|
elif [[ "$path" != /* ]]; then
|
||||||
path="$PWD/${path#./}"
|
path="$PWD/${path#./}"
|
||||||
|
|
Loading…
Reference in a new issue