diff options
author | Erich Eckner <git@eckner.net> | 2019-04-17 13:16:36 +0200 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2019-04-20 17:55:31 +0200 |
commit | c86823a2d4a4152c71faa1c3bab227756232996f (patch) | |
tree | 5d1aafe0e740917d7b7ccf0a559720455606ca8a | |
parent | a49f55cbed51c815a9392c9f7fff5f8cec385935 (diff) | |
download | devtools32-c86823a2d4a4152c71faa1c3bab227756232996f.tar.xz |
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>
-rw-r--r-- | lib/archroot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/archroot.sh b/lib/archroot.sh index f279603..2c03c82 100644 --- a/lib/archroot.sh +++ b/lib/archroot.sh @@ -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")" ]] } ## |