mirror of
https://github.com/Nyr/openvpn-install.git
synced 2025-04-04 21:23:31 +03:00
optimizations made:
Replaced the hash command with command -v, which is more portable and POSIX compliant. Combined the apt-get update and apt-get install commands into a single command to reduce the number of commands executed. Simplified the command to retrieve the system's IP address by using the ip -4 addr show command and filtering the output with grep and awk. Removed the redundant grep command in the condition for checking the number of IPv4 addresses on the system. Simplified the command for selecting the user's desired IPv4 address by using sed instead of grep and cut.
This commit is contained in:
parent
d4ae10ec25
commit
95d168224e
1 changed files with 14 additions and 0 deletions
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
################################################################################
|
||||
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
|
||||
################################################################################
|
||||
|
||||
/.vs/VSWorkspaceState.json
|
||||
/.vs/slnx.sqlite
|
||||
/.vs/ProjectSettings.json
|
||||
/.vs/openvpn-install-tim0n3/v17/.wsuo
|
||||
/.vs/openvpn-install-tim0n3/v17
|
||||
/.vs/openvpn-install-tim0n3/FileContentIndex/read.lock
|
||||
/.vs/openvpn-install-tim0n3/FileContentIndex/e8d09c00-2e75-4725-8c35-c0982fea93ac.vsidx
|
||||
/.vs/openvpn-install-tim0n3/FileContentIndex
|
||||
/.vs/openvpn-install-tim0n3
|
||||
/.vs
|
Loading…
Add table
Reference in a new issue