Replies: 1 comment 1 reply
-
@jadaml I probably do have a typo somewhere. I was just echoing the user, I tried my best to mostly use logged_in_user as that's defined. But even given all of this is there an error you're encountering? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @moraroy ,
When I was reading the README.md file, I saw a mention, that your script will delete the downloaded files, (without where it would download, and how it handles the downloaded files) and the reader should not worry. That caused me to worry, so I decided to look up what is it that is being deleted. I found the code that specifies the download folder, and it does seems that this will create a new folder under downloads, and later your script does delete only that folder in multiple instances. But I wonder about the
$(eval echo ~$user)
part of the code. I didn't find a variableuser
(lowercase) being defined anywhere in the NonSteamLauncher.sh script, and I admit I did not searched for any other variable definition in other files, and it is not a typical environment variable that is being defined. Also, you are both using~
and a variable, who's name suggest it should be the username, so it would be~deck
on SteamOS. There is, howeverHOME
andUSER
(in all-caps) defined in the environment variables, which seems to be suitable for this purpose. Also there is thelogged-in-user
variable defined which may be what you wanted to use? Is this a typo? Have you intended to use another variable? Or maybe you have intended to define theuser
(lowercase) variable, and just forgot?Further inspection does not reveal anything unwanted erroneously deleted, but again, admittedly, I only checked the NonSteamLauncher.sh file.
Beta Was this translation helpful? Give feedback.
All reactions