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,7 +10,7 @@ case "$SNAP_ARCH" in
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -f $SNAP_USER_DATA/.local/share/openspades/Resources ];
|
||||
if [ ! -d $SNAP_USER_DATA/.local/share/openspades/Resources ];
|
||||
then
|
||||
mkdir -p $SNAP_USER_DATA/.local/share/openspades/Resources
|
||||
cp $SNAP/share/games/openspades/Resources/* $SNAP_USER_DATA/.local/share/openspades/Resources
|
||||
|
Loading…
x
Reference in New Issue
Block a user