Replaced usage outdate egrep to grep
Change-Id: I78f4c93d4d196e5d870a39256cb90dcbec41da45 Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ respawn limit 2 2
|
|||||||
exec guest-agent --config-file /etc/trove/guest-agent.conf
|
exec guest-agent --config-file /etc/trove/guest-agent.conf
|
||||||
|
|
||||||
post-start script
|
post-start script
|
||||||
PID=`status guest-agent | egrep -oi '([0-9]+)$' | head -n1`
|
PID=`status guest-agent | grep -Eoi '([0-9]+)$' | head -n1`
|
||||||
echo $PID > /var/run/guest-agent.pid
|
echo $PID > /var/run/guest-agent.pid
|
||||||
end script
|
end script
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function git_clone {
|
|||||||
GIT_DEST=$2
|
GIT_DEST=$2
|
||||||
GIT_BRANCH=$3
|
GIT_BRANCH=$3
|
||||||
|
|
||||||
if echo $GIT_BRANCH | egrep -q "^refs"; then
|
if echo $GIT_BRANCH | grep -E "^refs"; then
|
||||||
# If our branch name is a gerrit style refs/changes/...
|
# If our branch name is a gerrit style refs/changes/...
|
||||||
if [[ ! -d $GIT_DEST ]]; then
|
if [[ ! -d $GIT_DEST ]]; then
|
||||||
git_timed clone $GIT_REMOTE $GIT_DEST
|
git_timed clone $GIT_REMOTE $GIT_DEST
|
||||||
|
|||||||
@@ -553,7 +553,7 @@ function cmd_start_deps() {
|
|||||||
sudo losetup -f --show ${VOLUME_BACKING_FILE}
|
sudo losetup -f --show ${VOLUME_BACKING_FILE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! egrep -q ${SWIFT_DATA_DIR}/drives/sdb1 /proc/mounts; then
|
if ! grep -E ${SWIFT_DATA_DIR}/drives/sdb1 /proc/mounts; then
|
||||||
exclaim "Re-mounting Swift Disk Image"
|
exclaim "Re-mounting Swift Disk Image"
|
||||||
sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 ${SWIFT_DISK_IMAGE} ${SWIFT_DATA_DIR}/drives/sdb1 || true
|
sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 ${SWIFT_DISK_IMAGE} ${SWIFT_DATA_DIR}/drives/sdb1 || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user