Skip to content

Commit

Permalink
don't use mktemp -d
Browse files Browse the repository at this point in the history
  • Loading branch information
phyver committed Jun 22, 2021
1 parent 4efc44b commit f6de67d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bin_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ test_mktemp() (


test_realpath() (
tmp=$(mktemp -d)
tmp=${GSH_TMP:?Error: \$GSH_TMP not set}
cd "$tmp"
rm -f a b

touch a
rpa=$(realpath ./a)
if [ -z "$rpa" ]
Expand All @@ -45,7 +47,7 @@ test_realpath() (
return 1
fi

rm -rf "$tmp"
rm -f a b
return 0
)

Expand Down
1 change: 1 addition & 0 deletions missions/finding_files_maze/01_ls_cd/i18n/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ msgid "$MISSION_DIR/goal/en.txt"
msgstr "$MISSION_DIR/goal/en.txt"

# path for the text file containing the treasure message
#, sh-format
msgid "$MISSION_DIR/treasure-msg/en.txt"
msgstr "$MISSION_DIR/treasure-msg/en.txt"

Expand Down
1 change: 1 addition & 0 deletions missions/finding_files_maze/01_ls_cd/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgid "$MISSION_DIR/goal/en.txt"
msgstr "$MISSION_DIR/goal/fr.txt"

# path for the text file containing the goal
#, sh-format
msgid "$MISSION_DIR/treasure-msg/en.txt"
msgstr "$MISSION_DIR/goal/fr.txt"

Expand Down
1 change: 1 addition & 0 deletions missions/finding_files_maze/01_ls_cd/i18n/template.pot
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ msgid "$MISSION_DIR/goal/en.txt"
msgstr ""

# path for the text file containing the treasure message
#, sh-format
msgid "$MISSION_DIR/treasure-msg/en.txt"
msgstr ""

Expand Down

0 comments on commit f6de67d

Please sign in to comment.