diff options
author | Daniel Rosenberg <drosen@google.com> | 2020-04-11 03:50:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-11 03:50:13 +0000 |
commit | ae7f2edaf436bea92503667958e29d6349904a5b (patch) | |
tree | 81a6b1acb873c766c820dbc7ac3190314971fc89 | |
parent | aff6b2d6b0e57cd4b5691b01ea99ebf769255ef0 (diff) | |
parent | 1c43a8d5aaa8740266f1379e5227edf14ed56f8e (diff) | |
download | extras-ae7f2edaf436bea92503667958e29d6349904a5b.tar.gz |
Merge "Use realpath to grab underlying path for userdata" into rvc-dev
-rw-r--r-- | checkpoint_gc/checkpoint_gc.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/checkpoint_gc/checkpoint_gc.sh b/checkpoint_gc/checkpoint_gc.sh index 682c8499..beaedcbc 100644 --- a/checkpoint_gc/checkpoint_gc.sh +++ b/checkpoint_gc/checkpoint_gc.sh @@ -31,7 +31,8 @@ MAX_TIME=3600 NAME=`while read dev dir type opt; do if [ /data = ${dir} -a f2fs = ${type} ]; then - echo ${dev##*/} + real_dev=$(realpath $dev) + echo ${real_dev##*/} break fi done < /proc/mounts` |