Applications directory non-existent #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Not all Linux distro users own a
$HOME/Applications. This is Distro dependent. (e.g. some base-Arch installs using$HOME/Programs)When trying to download to the default folder, has an error due to folder not existing.
Possible Solutions
The real solution is add better code handling, options, and flags overall as a new iteration of the script.
For now, the below are outward thoughts for future reference, but will implement a quick fix for consistent code intent right now.
curl --create-dirsflagStupid simple solution for the current iteration of the script, which can be reworked.
Add
--create-dirsto thecurlcommand performing the download so it creates directories it needs.Check for alternate directories
Hard-code in possible alternate directories to check for, before falling back on a default.
add
--download-directoryflag to scriptThis makes sense. This should be an added solution regardless, and is part of long term plan.
Added
curl --create-dirswithb11fdec0e1.Plans to re-iterate on it if substantial updates to the code occur.