mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00

Quote the status output in echo to preserve the new lines. Having the output in one line complicated debugging issues and is not friendly to use. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
14 lines
215 B
Bash
Executable File
14 lines
215 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
STATUS=$(git status --porcelain)
|
|
if [[ -z $STATUS ]]
|
|
then
|
|
echo "tree is clean"
|
|
else
|
|
echo "tree is dirty, please commit all changes and sync the vendor.conf"
|
|
echo ""
|
|
echo "$STATUS"
|
|
exit 1
|
|
fi
|