Skip to content

Commit 815ac4d

Browse files
committed
Update csf_custom_regex.sh
1 parent b8951ef commit 815ac4d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

csf_custom_regex.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ date=$(date +"%d%m%y-%H%M%S")
5151
fi
5252

5353
csf_installer_url=https://github.com/tmiland/csf/raw/master/csf_installer.sh
54-
args=${*:-"-i"}
54+
csf_args=${*:-"-i"}
55+
shift
5556
install_csf() {
5657
if [[ $(command -v 'curl') ]]; then
57-
set -- $args
58+
set -- $csf_args
5859
# shellcheck disable=SC1090
5960
source <(curl -sSLf $csf_installer_url)
6061
elif [[ $(command -v 'wget') ]]; then
61-
set -- $args
62+
set -- $csf_args
6263
# shellcheck disable=SC1090
6364
. <(wget -qO - $csf_installer_url)
6465
else
@@ -68,14 +69,15 @@ install_csf() {
6869
}
6970

7071
virtualmin_installer_url=https://github.com/virtualmin/virtualmin-install/raw/master/virtualmin-install.sh
71-
args=${*:-"--minimal --bundle LEMP"}
72+
virtualmin_args=${*:-"--minimal --bundle LEMP"}
73+
shift
7274
install_virtualmin() {
7375
if [[ $(command -v 'curl') ]]; then
74-
set -- $args
76+
set -- $virtualmin_args
7577
# shellcheck disable=SC1090
7678
source <(curl -sSLf $virtualmin_installer_url)
7779
elif [[ $(command -v 'wget') ]]; then
78-
set -- $args
80+
set -- $virtualmin_args
7981
# shellcheck disable=SC1090
8082
. <(wget -qO - $virtualmin_installer_url)
8183
else

0 commit comments

Comments
 (0)