Skip to content

Commit

Permalink
Merge pull request #51 from CodeYourFuture/tweaks
Browse files Browse the repository at this point in the history
Misc tweaks - copy edit, update link, add submission instructions
  • Loading branch information
SallyMcGrath authored Oct 8, 2024
2 parents ee1c92e + 4c06fd9 commit 2f62259
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Clues/What/clue.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
console.log(`Here's what you need to do:
1. Touch a file called answer.txt by typing:
1. Create a file called answer.txt by typing:
touch answer.txt
2. Check this by listing all the files in this folder:
ls -a
2. Now change directory to the Who folder and find the answer`)
2. Now change directory to the Who folder and find the answer`)
4 changes: 2 additions & 2 deletions Clues/Where/clue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.log(`You got here by typing a relative path.
Learn more about changing directory here:
https://alligator.io/workflow/command-line-basics-changing-directories/
https://phoenixnap.com/kb/linux-cd-command
Now change directory to ./How and get your next clue.
`)
`)
25 changes: 24 additions & 1 deletion Clues/Who/clue.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
let shaCommand;
switch (process.platform) {
case "darwin":
shaCommand = "shasum -a 256 answer.txt";
break;
case "linux":
shaCommand = "sha256sum answer.txt";
break;
case "win32":
shaCommand = "certutil -hashfile answer.txt SHA256"
break;
default:
console.log(`Oh no, we didn't recognise your operating system, process.platform = ${process.platform}`);
process.exit(1);
break;
}

console.log(`Who is never gonna give you up?
Never gonna take you down?
Never gonna run around and desert you?
Expand All @@ -6,4 +23,10 @@ Put your answer in the answer.txt file you created.
echo "ANSWER HERE" > answer.txt
Now move this file to the Answer folder.
How will you achieve this? Stay in the command line. (You can Google.)
`)
When you're done, run:
${shaCommand}
And paste the output into Slack thread 🧵 (create a new thread if there isn't one already).
`)

0 comments on commit 2f62259

Please sign in to comment.