On Wednesday 05 April 2017 05:04 PM, Xunlei Pang wrote:
+ # strip the duplicated "/"
+ _save_path=$(echo $_save_path | tr -s /)
+ # don't touch the path under root mount
+ if [ "$_mntpoint" != "/" ]; then
_save_path=${_save_path##"$_mntpoint"}
fi
nit: exchanging the position of above two _save_path would have removed
if statement.
_save_path=${_save_path##"$_mntpoint"}
# strip the duplicated "/"
_save_path=$(echo $_save_path | tr -s /)
Anyway..with and without above change, for the series
Acked-by: Pratyush Anand <panand(a)redhat.com>