Commit Graph

17 Commits

Author SHA1 Message Date
aarondill b242e49ca3 fix(CI): variable braces and masked exit codes 2024-01-23 04:17:14 -06:00
aarondill d4ad8c3f54 fix unset variable _arch in usage
Remove the display of this default value, since we can't detect it without erroring before usage.
2024-01-23 04:02:04 -06:00
aarondill efbd14a442 Use end-of-options marker (--) when user input is passed to a command
This ensures that odd values for _bin_name, _bin_dir, and others aren't treated as options to the command and cause a failure.
2024-01-23 03:53:42 -06:00
aarondill b69bcd571a add simple check to ensure that local is supported
Since the installation instructions now recommend using `sh`, check that this implementation *does* support local before continuing.
2024-01-23 03:45:17 -06:00
aarondill 1d875d3abb fix: test_writable should fail for empty paths
This prevents attempting to create files in `/` if a path is not given, instead failing early.
2024-01-23 03:35:50 -06:00
aarondill 8c8a0cf709 reset $sudo when writing man pages.
This helps ensure that mismatched permission on `_bin_dir` and `_man_dir` don't cause issues.
Also prevents creating man pages owned by root being written to the user's $HOME
2024-01-23 03:30:47 -06:00
aarondill c01c75fe41 add -s/--sudo option to choose the sudo command 2024-01-23 03:23:18 -06:00
aarondill 9dd4d4023e Add support for options in install script
This adds support for serveral new command line options (taken from the usage):
    - `-b, --bin-dir   Override the bin installation directory`
    - `-m, --man-dir   Override the man installation directory`
    - `-a, --arch      Override the architecture identified by the installer`
    - `-h, --help      Display this help message`
This also (coincidentally) allows for $BIN_DIR, $MAN_DIR, and $ARCH to be set to create default settings for these.
These variables are *always* overwritten by the command line arguments.
2024-01-23 03:15:39 -06:00
Ajeet D'Souza 0ecfbf7e68 Format + lint more filetypes 2023-05-06 14:25:33 +05:30
Ajeet D'Souza 03df9d4d1f Update install script to support Windows 2023-04-30 15:05:51 +05:30
Ajeet D'Souza 2555870c31 Handle rate limits in installer 2023-01-08 05:21:00 +05:30
Ajeet D'Souza 209d86ab2f
Install script for zoxide (#425) 2022-07-15 07:30:48 +05:30
Ajeet D'Souza a285b4e07d Release v0.7.0 2021-05-02 06:03:51 +05:30
Adam Stephens 90f49684e9
add armv7/aarch64 support to installer (#198) 2021-05-01 01:02:20 +05:30
Ajeet D'Souza bc0ca7b82c Release v0.4.1 2020-05-25 02:55:00 +05:30
Ajeet D'Souza 8b5bcee3e6 Make install.sh executable 2020-03-08 08:37:11 +05:30
Kartik Sharma bc65fc8534 Added install script to install zoxide with cross-compatibility in a one-liner format. 2020-03-08 00:13:45 +05:30