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:
Flávio Monteiro 2018-08-18 02:42:19 -03:00 committed by Flavio Monteiro
parent 2f501dbeca
commit 90054b51a7

View File

@ -10,7 +10,7 @@ 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