mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Use hash
instead of which
in expand-root
Also remove the variable since we established that it is already in the $PATH Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
This commit is contained in:
parent
78b796be5b
commit
4429c226a8
1 changed files with 2 additions and 2 deletions
|
@ -13,14 +13,14 @@
|
|||
prog=$(basename $0)
|
||||
logger="logger -t $prog"
|
||||
|
||||
growpart=$(which growpart) || {
|
||||
hash growpart 2> /dev/null || {
|
||||
$logger "growpart was not found on PATH. Unable to expand size."
|
||||
exit 1
|
||||
}
|
||||
|
||||
root_index="0"
|
||||
|
||||
$growpart /dev/xvda $root_index || {
|
||||
growpart /dev/xvda $root_index || {
|
||||
$logger "growpart failed. Unable to expand size."
|
||||
exit 1
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue