Do not overwrite User Resource Directory on every snap launch
-f was being used instead of -d for checking the User Resource Directory existence. Also, remove an indentation inconsistency in the script.
This commit is contained in:
parent
2f501dbeca
commit
90054b51a7
@ -10,9 +10,9 @@ case "$SNAP_ARCH" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ! -f $SNAP_USER_DATA/.local/share/openspades/Resources ];
|
if [ ! -d $SNAP_USER_DATA/.local/share/openspades/Resources ];
|
||||||
then
|
then
|
||||||
mkdir -p $SNAP_USER_DATA/.local/share/openspades/Resources
|
mkdir -p $SNAP_USER_DATA/.local/share/openspades/Resources
|
||||||
cp $SNAP/share/games/openspades/Resources/* $SNAP_USER_DATA/.local/share/openspades/Resources
|
cp $SNAP/share/games/openspades/Resources/* $SNAP_USER_DATA/.local/share/openspades/Resources
|
||||||
echo cl_checkForUpdates: 1 > $SNAP_USER_DATA/.local/share/openspades/Resources/SPConfig.cfg
|
echo cl_checkForUpdates: 1 > $SNAP_USER_DATA/.local/share/openspades/Resources/SPConfig.cfg
|
||||||
echo s_eax: 1 >> $SNAP_USER_DATA/.local/share/openspades/Resources/SPConfig.cfg
|
echo s_eax: 1 >> $SNAP_USER_DATA/.local/share/openspades/Resources/SPConfig.cfg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user