Remove unnecessary [[

pull/317/head
Tim Byrne 3 years ago
parent 88ee3f09fb
commit 79f7aae073
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12

@ -1492,11 +1492,11 @@ function process_global_args() {
function qualify_path() {
local path="$1"
if [[ -z "$path" ]]; then
if [ -z "$path" ]; then
error_out "You can't specify an empty $2 path"
fi
if [[ "$path" = "." ]]; then
if [ "$path" = "." ]; then
path="$PWD"
elif [[ "$path" != /* ]]; then
path="$PWD/${path#./}"

Loading…
Cancel
Save