From 95d168224e3c62c7a0c010c04e60115409626fd6 Mon Sep 17 00:00:00 2001 From: TimForbes <> Date: Mon, 10 Apr 2023 08:33:54 +0200 Subject: [PATCH] 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. --- .gitignore | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be7c268 --- /dev/null +++ b/.gitignore @@ -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