#Error installing Olympus on PopOS
29 messages · Page 1 of 1 (latest)
ah wait let me screenshot the line
(deck@steamdeck ~)$ d=543
(deck@steamdeck ~)$ echo "${d:0:1}"
5
well, is it running the script using bash, or some other shell? 
im using the sh command, am still pretty new to linux xd
(deck@steamdeck ~)$ sh
sh-5.2$ d=543
sh-5.2$ echo "${d:0:1}"
5
sh-5.2$
nevermind, even sh can do it
so this instead of line 41?
nooo
anyway remove sh and just write the file name hopefully
i was wondering where the code block is from but apparently that's maddie running things
yeah, ${d:0:1} is supposed to extract the first character of d
so the intention here is for the script to work if you type "yes" as opposed to just "y"
hopefully running the file itself should use bash
ah nvm just used bash
it worked
tysm tho!
i am clueless about this but ai tells me that sh uses a different shell on ubuntu and the likes
Dash?
Interesting never heard of it
huh yeah, mine points to bash (I'm on SteamOS)
i think that follows from 'deck@steamdeck'
same from a Debian box
maddie@box:~$ file -h /bin/sh
/bin/sh: symbolic link to dash
maddie@box:~$ sh
$ d=14423
$ echo "${d:0:1}"
sh: 2: Bad substitution
$
I remember trying to run shell scripts with sh once no wonder it didn't work