Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

trailing "/" in mountpoint option is not handled properly #49

Open
ghost opened this issue Mar 29, 2022 · 0 comments
Open

trailing "/" in mountpoint option is not handled properly #49

ghost opened this issue Mar 29, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2022

If --mountpoint is specified by the user with a trailing slash (i.e. /scratch/ instead of /scratch), then the following command in bin/ebs-autoscale:

curr_size=$(df -BG ${MOUNTPOINT} | grep ${MOUNTPOINT} | awk '{print $2} ' | cut -d'G' -f1)

fails because grep does not find the ${MOUNTPOINT} string.
I suggest trailing "/"s should be automatically trimmed from --mountpoint.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants