respect COSMOS_VERBOSE

This commit is contained in:
Fredrik Thulin 2023-02-03 16:04:51 +01:00
parent 948cc80389
commit 25463e6013
No known key found for this signature in database
GPG key ID: 198C1AFD505152DD

View file

@ -15,5 +15,9 @@ if ! test -d "$MODEL_OVERLAY"; then
fi fi
if [ -d "$MODEL_OVERLAY/root" ]; then if [ -d "$MODEL_OVERLAY/root" ]; then
chmod -v 0700 "$MODEL_OVERLAY"/root args=""
if [ "x$COSMOS_VERBOSE" = "xy" ]; then
args="-v"
fi
chmod ${args} 0700 "$MODEL_OVERLAY"/root
fi fi