fix: line end to LF

This commit is contained in:
v4n
2025-01-15 16:17:32 +02:00
parent 8f3a239b85
commit af55a2d414
3 changed files with 36 additions and 29 deletions
+12 -5
View File
@@ -15,19 +15,20 @@
- [Database location and details](#database-location-and-details) - [Database location and details](#database-location-and-details)
- [Contributing](#contributing) - [Contributing](#contributing)
Helldivers 2 Mod Manager CLI is a command line interface for managing Helldivers 2 mods. Since there is no mod manager GUI for Helldivers 2 on Linux yet, this small script aims to provide a simple way to manage mods on Linux. Helldivers 2 Mod Manager CLI is a command line interface for managing Helldivers 2 mods. Since there is no mod manager GUI for Helldivers 2 on Linux yet, this small script aims to provide a simple way to manage mods on Linux.
## Installation ## Installation
To install/update Helldivers 2 Mod Manager CLI run the following command in your terminal: To install/update Helldivers 2 Mod Manager CLI run the following command in your terminal:
```bash ```bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/v4n00/h2mm-cli/refs/heads/master/install.sh)" sh -c "$(curl -fsSL https://raw.githubusercontent.com/v4n00/h2mm-cli/refs/heads/master/install.sh)"
``` ```
## Usage ## Usage
The script gets added to `/usr/local/bin/h2mm` and can be used by running `h2mm` in your shell, which will show the help message explaining how to use the script. The script gets added to `/usr/local/bin/h2mm` and can be used by running `h2mm` in your shell, which will show the help message explaining how to use the script.
```bash ```bash
h2mm h2mm
``` ```
@@ -37,14 +38,15 @@ h2mm
- `install` - Install a mod with files - `install` - Install a mod with files
- `uninstall` - Uninstall a mod by name - `uninstall` - Uninstall a mod by name
- `list` - List all installed mods - `list` - List all installed mods
- `export <zip_name>` - Export installed mods to a zip file - `export <zip_name>` - Export installed mods to a zip file
- `import <zip_name>` - Import mods from a zip file - `import <zip_name>` - Import mods from a zip file
- `reset` - Reset all installed mods - `reset` - Reset all installed mods
- `help` - Display the help message - `help` - Display the help message
### Basic usage ### Basic usage
#### Install a mod #### Install a mod
```bash ```bash
h2mm install /path/to/mod.zip h2mm install /path/to/mod.zip
h2mm install /path/to/mod/files h2mm install /path/to/mod/files
@@ -53,12 +55,14 @@ h2mm install -n "Example mod" mod* # using a wildcard to include all files
``` ```
#### Uninstall a mod #### Uninstall a mod
```bash ```bash
h2mm uninstall "Example mod" h2mm uninstall "Example mod"
h2mm uninstall -i 1 # uninstall mod with index 1 h2mm uninstall -i 1 # uninstall mod with index 1
``` ```
#### List installed mods #### List installed mods
```bash ```bash
h2mm list h2mm list
``` ```
@@ -68,6 +72,7 @@ h2mm list
### Shortcuts ### Shortcuts
You can use the short form of the commands to save some time. The shortcuts are: You can use the short form of the commands to save some time. The shortcuts are:
- `i` for `install` - `i` for `install`
- `u` for `uninstall` - `u` for `uninstall`
- `l` for `list` - `l` for `list`
@@ -78,6 +83,7 @@ You can use the short form of the commands to save some time. The shortcuts are:
### Exporting and importing ### Exporting and importing
You can export all installed mods to a zip file and import mods from the same file. This can be useful for sharing mods with others or for backing up your mods. The zip file will be saved in the current directory. You can export all installed mods to a zip file and import mods from the same file. This can be useful for sharing mods with others or for backing up your mods. The zip file will be saved in the current directory.
```bash ```bash
h2mm export mods.zip h2mm export mods.zip
h2mm import mods.zip h2mm import mods.zip
@@ -86,6 +92,7 @@ h2mm import mods.zip
### Resetting all installed mods ### Resetting all installed mods
You can reset all installed mods by running the following command. This will remove all installed mods and the database, in case things go wild. You can reset all installed mods by running the following command. This will remove all installed mods and the database, in case things go wild.
```bash ```bash
h2mm reset h2mm reset
``` ```
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# Helldivers 2 Mod Manager # Helldivers 2 Mod Manager v0.1.0
# --- Globals --- # --- Globals ---
@@ -85,7 +85,7 @@ function initialize_directories() {
# --- Help Functions --- # --- Help Functions ---
function display_help() { function display_help() {
echo "Helldivers 2 Mod Manager" echo "Helldivers 2 Mod Manager v0.1.0"
echo "Usage: h2mm [command] [options]" echo "Usage: h2mm [command] [options]"
echo "Commands:" echo "Commands:"
echo " install Install a mod with files (short form: h2mm i)." echo " install Install a mod with files (short form: h2mm i)."