is_same_fs() in lib/archroot.sh should use $1 and $2, not $1 and $1

The old behaviour would always evaluate to true - this is certainly not
what that function should do.

Signed-off-by: Erich Eckner <git@eckner.net>
This commit is contained in:
Erich Eckner 2019-04-17 13:16:36 +02:00 committed by Jelle van der Waa
parent a49f55cbed
commit c86823a2d4
No known key found for this signature in database
GPG Key ID: C06086337C50773E
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ is_subvolume() {
# return : whether $path_a and $path_b are on the same filesystem
##
is_same_fs() {
[[ "$(stat -c %d "$1")" == "$(stat -c %d "$1")" ]]
[[ "$(stat -c %d "$1")" == "$(stat -c %d "$2")" ]]
}
##