mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
util: clarify error message in "wmaker.inst" in case of directory creation failure
Previously, the directory was expected to already exist, but as now it is automatically created it is a good idea in case of problem to have the message clearer. Took opportunity to indent properly that part of code. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
cb3702559a
commit
461214d870
@@ -113,8 +113,8 @@ else
|
|||||||
if [ ! -d "$GSDIR" ]; then
|
if [ ! -d "$GSDIR" ]; then
|
||||||
# in this case, and in this case only, mkdir needs -p option
|
# in this case, and in this case only, mkdir needs -p option
|
||||||
mkdir -p $GSDIR || {
|
mkdir -p $GSDIR || {
|
||||||
echo "Directory specified in GNUSTEP_USER_ROOT environment variable does not exist"
|
echo "Directory specified in GNUSTEP_USER_ROOT environment variable does not exist and could not be created"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
chmod +rwx $GSDIR || exit 1
|
chmod +rwx $GSDIR || exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user