dotg

a bitreich fosdem adventure
git clone https://git.parazyd.org/dotg
Log | Files | Refs

config (559B)


      1 #!/bin/sh
      2 
      3 export path="/dotg/act-ii"
      4 
      5 export savegame="/home/parazyd/dotg/act-ii/$REMOTE_ADDR"
      6 export inventory="$savegame/inventory"
      7 export cafeteria="$savegame/cafeteria"
      8 
      9 [ -d "$savegame" ] && return
     10 
     11 mkdir -p \
     12 	"$inventory" \
     13 	"$cafeteria" \
     14 
     15 printf 1   > "$inventory/New_Thinkpad"
     16 printf 1   > "$inventory/Plastic_bottle_of_rakia"
     17 printf 1   > "$inventory/Smartphone"
     18 printf 1   > "$inventory/Red_Lighter"
     19 printf 20  > "$inventory/Cigarettes"
     20 printf 200 > "$inventory/Euros"
     21 
     22 printf 1000 > "$cafeteria/Beers"
     23 printf 1000 > "$cafeteria/Chocolate_Milks"