rsync_ui: nicer error message
This commit is contained in:
@@ -56,7 +56,7 @@ fi
|
|||||||
|
|
||||||
cd $PILLAR_DIR
|
cd $PILLAR_DIR
|
||||||
if [ $(git rev-parse --abbrev-ref HEAD) != "production" ]; then
|
if [ $(git rev-parse --abbrev-ref HEAD) != "production" ]; then
|
||||||
echo "You are NOT on the production branch, refusing to rsync_ui." >&2
|
echo "Pillar is NOT on the production branch, refusing to rsync_ui." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user