1
0
Fork 0
mirror of synced 2024-11-04 09:08:56 -05:00

Remove unnecessary [[

This commit is contained in:
Tim Byrne 2021-02-15 12:27:55 -06:00
parent 88ee3f09fb
commit 79f7aae073
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

4
yadm
View file

@ -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#./}"