Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
985 commits
Select commit Hold shift + click to select a range
be91970
typo
phyver Sep 24, 2021
a00c55c
add dockerfile to release
phyver Sep 24, 2021
a44e17f
gameshell.sh can now be run with zsh
phyver Sep 27, 2021
f5724d5
added docker instruction in README
phyver Sep 27, 2021
8824efe
bug, saved file didn't work anymore
phyver Sep 27, 2021
049a773
fix: dependency requirement
oupala Oct 26, 2021
4e915ef
fix: typo in dependency
oupala Oct 26, 2021
ff96fce
bug for day in the date for mission 01_cal_nostradamus
phyver Oct 28, 2021
019d922
spelling
phyver Oct 28, 2021
a1cf38a
mission ideas
phyver Oct 28, 2021
3a2247c
cleaning the Book_of_potions on reset
phyver Oct 28, 2021
317cec5
small change to skip / goto
phyver Jan 11, 2022
d5fe0da
skip.txt / skip/LANG.txt files for allowing skipping missions
phyver Jan 11, 2022
ee4871f
update template.pot / fr.pot files
phyver Jan 11, 2022
608a717
added doc about skip files
phyver Jan 11, 2022
27ad2bd
remove old debug message
phyver Jan 12, 2022
a832f60
Update fr.txt (#66)
pamputt Feb 4, 2022
e2a9981
Bienvenu -> Bienvenue
pamputt Feb 2, 2022
09c3822
corrections orthographiques
pamputt Feb 2, 2022
3409903
Fix spelling
pamputt Feb 3, 2022
79f299d
fix spelling
pamputt Feb 3, 2022
b0e345d
Add missing hyphen
pamputt Feb 3, 2022
5a29b97
Fix grammar
pamputt Feb 3, 2022
90700aa
Fix spelling
pamputt Feb 3, 2022
1c640fa
fix french translations from "cave" to "grotte" (not "cave" nor "cave…
Mar 7, 2022
5812e06
echo was turned off in passport mode
phyver Mar 28, 2022
4f679b8
copy_bin script copied absolute path instead of using $GSH_ROOT
phyver Mar 28, 2022
6b9a362
better goal message for mission 01_alias_la
phyver Mar 30, 2022
5d64df7
use $(pwd -P) instead of $PWD to prevent some problems
phyver Mar 30, 2022
29f442d
unprotect / protect the ROOT directory in finding_files_maze/01_ls_cd
phyver Mar 30, 2022
a64b825
explicitly explain that one must be in the cave with Servillus
phyver Mar 30, 2022
c5c5b73
check that Gameshell isn't run as root
phyver Apr 1, 2022
70250e9
explain that a "FILE" may contain directories
phyver Apr 1, 2022
5d3b4e6
new command: gsh version
phyver Apr 4, 2022
0fcd44a
additional sanity check when saving
phyver Apr 4, 2022
9c74a78
make sure the game is saved, even with SIGHUP
phyver Apr 6, 2022
c03b239
old bug in new_mission.sh
phyver Apr 26, 2022
6826375
new command to regenerate all the static parts of the world
phyver Apr 26, 2022
79a41b2
updated homebrew link
wdfry May 26, 2022
70d3936
Update deps.md
Photon9 May 25, 2022
cc62c9a
keep dates below 2038 for compatibility with 32bits systems
phyver May 26, 2022
77e421c
Translate "FICHER" to "FILE"
Photon9 May 26, 2022
0d90954
Translate CHAINE to STRING
Photon9 May 26, 2022
e91f126
show a warning when leaving GameShell directory structure
phyver May 26, 2022
8f80afc
Add 'gsh check' command to list of useful commands
Photon9 May 25, 2022
d12ea72
put some trailing space back
phyver May 26, 2022
c77cc09
export mission's TEXTDOMAIN before sourcing init.sh
phyver May 28, 2022
3ed2bd5
no message in debug mode when PWD is outside GameShell
phyver May 28, 2022
bbf23af
if GSH_NO_GETTEXT is defined, merlin.c doesn't use gettext
phyver May 28, 2022
b176133
added animated gif to README.md
phyver May 28, 2022
f2970d6
bug when checking 03_chmod_rw_file_dir_throne_room
phyver May 30, 2022
27872de
use [ $(id -u) -eq 0 ] to check if run as root
phyver Jun 1, 2022
b8d812a
remove old reference to 'start.sh' in gsh HELP
phyver Jun 3, 2022
d37d90a
Fix typo in documentation
scattenlaeufer Jun 5, 2022
c4170cc
do not create a savefile when using gameshell.sh -h
phyver Jun 14, 2022
474a0a7
Fixed typo 04_stderr_dev-null_grimoires's english goal
eriizu Jun 16, 2022
e056bad
feat(i18n): first italian localization
Mte90 May 27, 2022
b6c9956
feat(i18n): italian readme
Mte90 May 27, 2022
2487234
feat(i18n): italian readme
Mte90 May 27, 2022
08e8638
feat(i18n): finished game messages
Mte90 May 27, 2022
1cb06f4
feat(i18n): first 2 missions
Mte90 May 27, 2022
5189e33
feat(i18n): other 2 missions
Mte90 May 27, 2022
41ab2c1
feat(i18n): italian revision
Mte90 May 27, 2022
7e9582f
feat(i18n): other 2 missions and revisions
Mte90 May 27, 2022
6260a18
feat(i18n): another mission
Mte90 May 27, 2022
59da6a2
feat(i18n): another 2 missions
Mte90 May 27, 2022
5632183
feat(italian): some revisions
Mte90 May 30, 2022
65effb2
feat(italian): almost finished basic missions
Mte90 May 30, 2022
1518ec1
feat(italian): finished basic missions
Mte90 May 30, 2022
6fe8c4e
Update it.txt
maupao May 30, 2022
e80e4ca
Create it.txt
maupao May 30, 2022
bb1243d
Create it.po
maupao May 30, 2022
f5ac7e7
final mission, misc e pipes_merchant (#7)
Mte90 May 31, 2022
e9f2636
Missions permissions ita (#2)
Anulo2 Jun 1, 2022
437ae08
fix(italian): review
Mte90 Jun 1, 2022
de87423
Italian (#8)
scudo005 Jun 1, 2022
986192f
Intermediate (#9)
maupao Jun 7, 2022
4cc2258
Italian (#10)
ziriuz84 Jun 8, 2022
f887b80
revert(maze): original sh files
Mte90 Jun 8, 2022
2dc7974
revert(maze): original sh files
Mte90 Jun 8, 2022
0fa2964
stdin, stdout, stderr italian translation. (#14)
Anulo2 Jun 9, 2022
33dc558
fixes (#13)
scudo005 Jun 9, 2022
defab3d
fix(revision): paths
Mte90 Jun 9, 2022
c80b18f
fix(italian): review
Mte90 Jun 9, 2022
42566ae
fix(italian): review
Mte90 Jun 9, 2022
934a84b
fix(italian): review
Mte90 Jun 10, 2022
a0ba1a9
fix(italian) (#15)
DomenicoMammola Jun 10, 2022
7ffcd75
fix(Italian) (#17)
DomenicoMammola Jun 10, 2022
a3e4ecd
fix(italian): review
Mte90 Jun 14, 2022
8127014
fix(italian): review
Mte90 Jun 17, 2022
d4fb183
Update missions/basic/01_cd_tower/i18n/it.po
Mte90 Jun 27, 2022
b9f4001
Update missions/basic/02_cd.._cellar/i18n/it.po
Mte90 Jun 27, 2022
c98f227
Update missions/basic/01_cd_tower/i18n/it.po
Mte90 Jun 27, 2022
cc9473b
Update missions/pipe_intro_book_of_potions/00_shared/book_of_potions/…
Mte90 Jun 27, 2022
7ba60ef
Update missions/pipe_intro_book_of_potions/00_shared/book_of_potions/…
Mte90 Jun 27, 2022
ff93cce
Update missions/pipes_merchant_stall/00_shared/data/firstnames.it
Mte90 Jun 27, 2022
a0713a6
fix(italian): review
Mte90 Jun 27, 2022
94efb35
feat(italian): contributors
Mte90 Jun 28, 2022
1829dad
feat(italian): contributors
Mte90 Jun 28, 2022
fee8609
feat(italian): revisions
Mte90 Jul 4, 2022
3f96f80
fix(italian): broken path
Mte90 Jul 5, 2022
ae83572
feat(italian): revisions
Mte90 Jul 5, 2022
f78a1b1
use lowercase for later characters in directory names
phyver Jul 11, 2022
39953c4
endlines
phyver Jul 11, 2022
f2b8377
ps truncates process names to 15 characters!
phyver Jul 11, 2022
0387f1e
fix(italian): updated start-help
Mte90 Jul 11, 2022
3673359
kill xeyes in the corresponding auto.sh script
phyver Jul 5, 2022
de090dd
initial history for zsh was saved in a file named 0!
phyver Jul 11, 2022
74c5ab5
added a script `rm` to offer some safeguard when removing files
phyver Jul 5, 2022
1de1f2c
use https://github.com/ericpruitt/wcwidth.awk
phyver Jul 11, 2022
95b07b2
added option -G to disable gettext entirely
phyver Jul 11, 2022
20add80
added a warning about not modifying the book of potions
phyver Jul 11, 2022
ce59cee
list languages in main README file
phyver Jul 13, 2022
c9235f7
faster cleaning of stall in pipes_merchant_stall missions
phyver Jul 13, 2022
6c26d2d
missing wcwidth.awk when displaying treasure messages
phyver Jul 13, 2022
4882e87
fix wrong word in italian
Mte90 Jul 27, 2022
a44949f
bug in clean.sh for missions pipes_merchant_stall
phyver Aug 3, 2022
ccace4e
Fix typos in French translations (#114)
Tithugues Aug 5, 2022
4f641ba
change to Stall directory in auto scripts
phyver Aug 7, 2022
6e1a568
chaîne => chaine
phyver Aug 6, 2022
80d05ac
do not save timestamp in _gsh_version
phyver Aug 6, 2022
2cdd39d
version wasn't recorded in the generated archive!
phyver Aug 7, 2022
0211d1e
fix: wrong path
alxrey Aug 7, 2022
47ea208
fix: missing image
alxrey Aug 7, 2022
c097d46
define XAUTHORITY if it is unset
phyver Aug 7, 2022
07a8d1d
force updating tags when creating release
phyver Aug 7, 2022
a76ca3e
user defined terminfo entries were not found in GameShell
phyver Aug 8, 2022
3dcd432
automatic save after each check
phyver Aug 5, 2022
249ecc0
check for more recent savefiles when running gameshell
phyver Aug 6, 2022
85a705a
new command `gsh env` to display GameShell's variables
phyver Aug 6, 2022
f3bb73d
new option '-U' to download latest official GameShell archive
phyver Aug 7, 2022
879b1ab
added option "-V" to show GameShell version
phyver Aug 7, 2022
46479b0
using option -E for archive.sh defines GSH_NO_GETTEXT as well
phyver Aug 25, 2022
3cb0888
improvment for savefiles
phyver Aug 25, 2022
22f4502
feat(italian): updated localization
Mte90 Sep 1, 2022
8b7f397
Update fr.txt (#124)
Pada0 Nov 11, 2022
b8d6d21
Update fr.txt
Pada0 Dec 24, 2022
f49d1d4
Update gsh.sh
oliviermattelaer Feb 15, 2023
e6a7aa9
better wording for mission 33
phyver Feb 20, 2023
828e871
shebang: (/usr)/bin/* -> /usr/bin/env *
mpoquet Nov 7, 2022
8e3f220
real rm call: use unmodified PATH
mpoquet Nov 7, 2022
603621e
update action in github workflow
phyver Feb 21, 2023
d68c6cd
better cleaning in the cellar!
phyver Feb 21, 2023
04e38dd
wrong buffer length in merlin.c
phyver Feb 21, 2023
eaa66ab
stray debug message
phyver Feb 21, 2023
a79b8ee
wrong translation for stat message
phyver Feb 21, 2023
d146ec4
no version recorded in _gsh_version
phyver Feb 21, 2023
91ebdc6
update commands in remaining actions
phyver Feb 21, 2023
08b5fa8
do not use lightweight tags for GSH_VERSION
phyver Feb 21, 2023
cb69b40
use salt to better "protect" admin password
phyver Mar 20, 2023
7a73242
typo in italian translation
phyver May 30, 2023
5b18cdc
remove warning about GameShell being under "heavy development"
phyver Jun 7, 2023
6ff3273
bug when changing the admin password in the last mission
phyver Jun 13, 2023
a2b92cf
simpler cleaning for stall missions
phyver Jun 14, 2023
bc2602b
process names for 03_pstree_kill were wrong
phyver Jun 14, 2023
a74501b
missing quotes in archive.sh
phyver Jun 14, 2023
7ff3d8b
FICHIER -> FILE in English goal file for mission 05_stdout_stderr_red…
phyver Nov 23, 2023
6d1956a
fix: typo in README-fr.md (#139)
CocoEC Nov 30, 2023
6526b30
wrong name for coin file in check message
phyver Feb 9, 2024
c8a7789
do not remove $GSH_CHEST/journal.txt when cleaning mission 16
phyver Feb 9, 2024
7737268
random salt in passport.txt must call the RANDOM script explicitly
phyver Feb 9, 2024
d098ea4
Fix typo.
grock Mar 9, 2024
7e96e53
Fix typo.
grock Mar 9, 2024
c6c2748
apparently, "FROM" is better than "from" in Dockerfiles
phyver Mar 20, 2024
94a959c
minor changes in templates generated by new_mission.sh script
phyver Mar 20, 2024
846cfd0
update workflow files
phyver Mar 20, 2024
db2cfb9
fix 16 for italian
Mte90 May 7, 2024
ebeccc5
Update it.txt
Mte90 May 7, 2024
5878bb9
no need to copy gshrc to $GSH_CONFIG
phyver May 6, 2024
dd38398
actions/checkout@v4 in tests workflow
phyver May 7, 2024
2aaf55e
forgot to remove .tmp directory in "clean" rule
phyver May 7, 2024
9bed685
document "gsh goal <N>" in help message
phyver May 7, 2024
743828a
make sure the PRNG seed is uncorrupted
phyver May 7, 2024
d0de7fa
old bug in reflow.awk
phyver May 7, 2024
eeb7cc5
cleaning some temporary files in gameshell
phyver May 8, 2024
ae7e1eb
cleaning temporary files in missions
phyver May 8, 2024
467c714
"clean" rule tried to remove .var directory
phyver May 8, 2024
732320b
some cleaning in how CLI options are handled
phyver May 8, 2024
b397446
add a recurring help message for the first 3 missions
phyver May 7, 2024
eb63a36
added optional alphabet argument to random_string
phyver May 8, 2024
01606bd
bug when getting CLI arguments from self extracting archive
phyver May 9, 2024
6a1527c
better error message on invalid options
phyver May 9, 2024
7c1d2e3
cleaning _gsh_save so that it works correctly when explicitly called
phyver May 9, 2024
1cd3a75
better handling of the .save file
phyver May 8, 2024
221a1b9
missing translation for a error message
phyver May 9, 2024
ce11af8
2 directory names / script names differed only in case
phyver Aug 13, 2024
d1e948a
the cal command is now in package "ncal" (Debian / Ubuntu)
phyver Aug 27, 2024
f978652
first version of a "control-C" mission
phyver May 7, 2024
c8e88aa
minor work on control-C mission
phyver May 8, 2024
39032a7
add '.' characters when Merlin is falling asleep
phyver May 8, 2024
e968f50
French translations for control-C
phyver May 8, 2024
365905e
better control-c mission
phyver May 9, 2024
11d3abc
feat(l1on): italian for 2 new missions
Mte90 Aug 29, 2024
2adfde3
feat(l1on): italian for 2 new missions
Mte90 Aug 29, 2024
07ecba7
minor changes in a couple of goal files
phyver Aug 29, 2024
7b5525e
make the xeyes and cal missions skippable by default
phyver Aug 29, 2024
85fdfa0
show skipable missions in gsh index
phyver Aug 29, 2024
c32b770
reset to current mission when next mission isn't found
phyver Aug 28, 2024
9a8a742
adding the possibility of having several index files in the same archive
phyver Aug 28, 2024
f73104c
spelling
phyver Nov 18, 2024
df1843f
updated gitignore file
phyver Nov 4, 2024
33f7b0b
automatic testing did not test the last missions!
phyver Nov 4, 2024
d7aa999
additional messages for the pyrotechnician's missions
phyver Nov 4, 2024
1f57f5e
removing empty directories and language text files in archive.sh
phyver Nov 4, 2024
22d5c90
trying to get multiple index files working
phyver Nov 4, 2024
0ff04b8
minor change to always generate a "latest" archive
phyver Nov 4, 2024
fb35751
only display small help message with -h
phyver Nov 18, 2024
e8d97b0
missing redirection to stderr for some messages
phyver Nov 18, 2024
c7fb9f7
fix semaphore
oliviermattelaer Nov 18, 2024
4076aaa
small clean for semaphore PR
phyver Nov 18, 2024
2272b8e
make it possible to choose several index files
phyver Nov 18, 2024
70a7a28
unnecessary 'set -m' in test / auto files
phyver Nov 18, 2024
f48d5a3
renamed index.txt files to default.idx
phyver Nov 18, 2024
649a998
added -I option to short help message
phyver Nov 18, 2024
ea42dc6
remove warning in case language is changed
phyver Nov 20, 2024
3df663e
better way to check for explicit language option and show warning
phyver Nov 20, 2024
d0ff65f
feat(language): it updated
Mte90 Nov 21, 2024
e592ab1
bug when copying the shell files for missions 29 and 30
phyver Dec 10, 2024
fe49739
small fix in error reporting for missing parameters / invalid options
phyver Nov 20, 2024
473e385
replaced -G option (no gettext) by -L ""
phyver Nov 20, 2024
87c7d1f
fix minor problem in the handling of options and parameters
phyver Nov 20, 2024
7a8dd37
ignore gameshell* pattern only in root directory
phyver Nov 19, 2024
8a612c6
not consistent with case for variables in help messages
phyver Nov 19, 2024
704a0af
message to show where file was saved on exit
phyver Nov 20, 2024
83ae56b
minor correction in goal messages for new missions
phyver Mar 13, 2025
2a44c25
rename spells charmiglio / Charmiglio to flarigo / charmiglio
phyver Mar 14, 2025
0b343e3
remove blank lines from book of potions
phyver Mar 14, 2025
7f451bd
allow player to use gsh commands in mission 03_cd_HOME_throne
phyver Mar 21, 2025
d233cbe
check that command doesn't write anything on stderr in stderr_dev-nul…
phyver May 26, 2025
5207e4e
typo (spurious EOL) in goal
phyver May 26, 2025
2438809
added tests-lang target to Makefile
phyver Mar 17, 2025
af3ecf1
updated release workflows
phyver Jun 17, 2025
a05df68
First mission lvm
Sep 16, 2025
865a0a1
Improve handling of loop disk
Sep 16, 2025
9c7d12e
add new lvm missions and improve handling of cleaning, in progress
Sep 19, 2025
1ffd158
Add 04
Sep 20, 2025
a68109e
add many missions
Sep 21, 2025
ba1d1ab
All working missions lvm
Sep 21, 2025
6bbc5dd
Disable output for all init and clean
Sep 21, 2025
a1ab806
Improve texts
Sep 21, 2025
fb1f00a
Fix path for fucking debian conf /dev/sda
Sep 22, 2025
c09d4fd
Improve cleaning
Sep 22, 2025
284da93
Improve lore generator, fix multiple auto and check
Sep 22, 2025
c56c244
Add acemedémie de géo-mancie
Sep 22, 2025
6b6b0f0
fix typo
Sep 23, 2025
2716da7
Add english goals
Sep 23, 2025
87ec5cd
Auto add gettext
Dec 4, 2025
d3fc57c
Add translations
Dec 5, 2025
25c49ae
order lvm mission
Dec 5, 2025
e51027f
Merge remote-tracking branch 'upstream/master'
Dec 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ locale/
/gameshell*
game shell*
boxes-data.awk
*.img
22 changes: 22 additions & 0 deletions backup_disk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/bash
ID_MISSION=$1

mkdir -p "/var/www/html/GameShell/missions/lvm/00_shared/data/$ID_MISSION/"

umount /dev/esdea/ouskelcoule
umount /dev/esdea/douskelpar
umount /dev/esdebe/grandflac

lvchange -an /dev/esdea/ouskelcoule
lvchange -an /dev/esdea/douskelpar
lvchange -an /dev/esdebe/grandflac

vgchange -an esdea
vgchange -an esdebe
vgchange -an esdece

vgexport esdea
vgexport esdebe
vgexport esdece

zip -jr /var/www/html/GameShell/missions/lvm/00_shared/data/$ID_MISSION/disks.zip /var/www/html/GameShell/missions/lvm/00_shared/data/00/disk*.img
2 changes: 1 addition & 1 deletion missions/default.idx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# default Gameshell missions order

basic/default.idx
misc/01_cal_nostradamus
intermediate/01_alias_la
Expand All @@ -21,4 +20,5 @@
finding_files_maze/05_find_xargs_grep
pipes_merchant_stall/default.idx
misc/03_tr_caesar_shift
lvm/default.idx
FINAL_MISSION
Empty file.
Binary file added missions/lvm/00_shared/data/01/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/02/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/03/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/04/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/05/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/06/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/07/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/08/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/09/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/10/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/11/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/12/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/13/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/14/disks.zip
Binary file not shown.
Binary file added missions/lvm/00_shared/data/15/disks.zip
Binary file not shown.
66 changes: 66 additions & 0 deletions missions/lvm/00_shared/fish_generator.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/usr/bin/env bash

gen_fishes() {
local count="${1:-}"
local dir="${2:-rivieres}"

# Basic checks
if [[ -z "$count" || ! "$count" =~ ^[0-9]+$ || "$count" -le 0 ]]; then
echo "$(eval_gettext "Usage: gen_fishes <number> [dir]")"
return 1
fi

mkdir -p "$dir"

# Available species (just for choosing ASCII art)
local -a species=(spike catfish roach)

# Generate exactly <count> files total
local i sp file
for ((i=1; i<=count; i++)); do
sp="${species[RANDOM % ${#species[@]}]}"
file="$dir/poisson_$(printf '%03d' "$i").fish"
case "$sp" in
spike) cat > "$file" <<'EOF'
_______
/ /
/'''''\/ _
/ @ \/ |
> _ |
\ <_) /\_|
\...../\
\\____/
EOF
;;
catfish) cat > "$file" <<'EOF'
_.'.__
_.' .
':'. .'' __ __ .
'.:._ ./ _ '' "-'.__
.'''-: """-._ | . "-"._
'. . "._.' "
'. "-.___ . .' . :o'.
| .---- . . .' (
'| ----. ' ,.._ _-'
.' .--- |."" .-:;.. _____.----'
| .-"""" | '
.' _' .' _'
|_.-' -cat- '-.'
EOF
;;
roach) cat > "$file" <<'EOF'
/`·.¸
/¸...¸`:·
¸.·´ ¸ `·.¸.·´)
: © ):´; ¸ {
`·.¸ `· ¸.·´\`·¸)
`\\´´\¸.·´
EOF
;;
esac
done

echo "$(eval_gettext "🐟 \$count fish created in '\$dir' (random ASCII per file).")"
}

gen_fishes "$@"
24 changes: 24 additions & 0 deletions missions/lvm/00_shared/gshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# Define a function "danger" allowing users to call sudo commandes
# this is necessary because gsh try to prevent usage of sudo by default
danger () {
if [ "$1" = "sudo" ]; then
shift
/usr/bin/sudo "$@"
else
command "$@"
fi
}

# Img disks paths
export DISK_1_PATH="$MISSION_DIR/data/disk1.img"
export DISK_2_PATH="$MISSION_DIR/data/disk2.img"

# Esdea and Esdebe physical volumes
export SDBA="/dev/gsh_sda"
export SDBB="/dev/gsh_sdb"

# Loop devices created in the 00_shared mission
export LOOP1_PATH="/dev/gsh_lvm_loop1"
export LOOP2_PATH="/dev/gsh_lvm_loop2"

Loading