1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2024-10-27 20:34:27 +00: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#./}"