mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-01 05:25:48 +01:00
util: create custom GNUSTEP dir if needed
This patch is creating the missing custom GNUSTEP dir. Patch found on vinelinux.org as WindowMaker-0.95.6-GSDIR.patch. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
5b42f6d090
commit
5f6f73e178
@@ -111,8 +111,12 @@ if test "x$GNUSTEP_USER_ROOT" = "x"; then
|
|||||||
else
|
else
|
||||||
GSDIR="$GNUSTEP_USER_ROOT"
|
GSDIR="$GNUSTEP_USER_ROOT"
|
||||||
if [ ! -d "$GSDIR" ]; then
|
if [ ! -d "$GSDIR" ]; then
|
||||||
|
# in this case, and in this case only, mkdir needs -p option
|
||||||
|
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"
|
||||||
exit 1
|
exit 1
|
||||||
|
}
|
||||||
|
chmod +rwx $GSDIR || exit 1
|
||||||
fi
|
fi
|
||||||
cd "$GSDIR"
|
cd "$GSDIR"
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
Reference in New Issue
Block a user