forked from axiom-team/astrXbian
Check .current player legal acceptance
This commit is contained in:
parent
77bd8fce3e
commit
0462a8f6c3
|
@ -59,7 +59,7 @@ IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID)
|
||||||
########################################################################
|
########################################################################
|
||||||
## CADRE EXCEPTION COPIE PRIVE
|
## CADRE EXCEPTION COPIE PRIVE
|
||||||
# https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006278917/2008-12-11/
|
# https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006278917/2008-12-11/
|
||||||
if [[ ! -f ~/.zen/legal ]]; then
|
if [[ ! -f ~/.zen/game/players/.current/legal ]]; then
|
||||||
zenity --width ${large} --height=${haut} --text-info \
|
zenity --width ${large} --height=${haut} --text-info \
|
||||||
--title="Action conforme avec le Code de la propriété intellectuelle" \
|
--title="Action conforme avec le Code de la propriété intellectuelle" \
|
||||||
--html \
|
--html \
|
||||||
|
@ -69,12 +69,12 @@ zenity --width ${large} --height=${haut} --text-info \
|
||||||
case $? in
|
case $? in
|
||||||
0)
|
0)
|
||||||
echo "AUTORISATION COPIE PRIVE ASTROPORT OK !"
|
echo "AUTORISATION COPIE PRIVE ASTROPORT OK !"
|
||||||
echo "$G1PUB" > ~/.zen/legal
|
echo "$G1PUB" > ~/.zen/game/players/.current/legal
|
||||||
# next step
|
# next step
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
echo "Refus conditions"
|
echo "Refus conditions"
|
||||||
rm -f ~/.zen/legal
|
rm -f ~/.zen/game/players/.current/legal
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
-1)
|
-1)
|
||||||
|
|
Loading…
Reference in New Issue