Skip to content

Commit

Permalink
Merge pull request #941 from HoxhaEndri/master
Browse files Browse the repository at this point in the history
remove disable shellcheck from installer folder scripts
  • Loading branch information
HoxhaEndri authored Dec 13, 2023
2 parents 612f82e + cfdfab1 commit 7c7eb55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions installer/IL15_emulated_checks_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,12 @@ IL15_emulated_checks_init() {
fi
# patch some code to write the history files to a subdirectory in /root
# shellcheck disable=SC2088
# we do not want to expand the tilde
if grep -q '~/.history' ./routersploit/interpreter.py; then
sed -i 's/~\/\.history/~\/\.routersploit\/\.history/' ./routersploit/interpreter.py
fi
# shellcheck disable=SC2088
# we do not want to expand the tilde
if grep -q '~/.rsf_history' ./routersploit/interpreter.py; then
sed -i 's/~\/\.rsf_history/~\/\.routersploit\/\.rsf_history/' ./routersploit/interpreter.py
fi
Expand Down
3 changes: 1 addition & 2 deletions installer/wickStrictModeFail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ wickStrictModeFail() (
if [[ ${#BASH_ARGC[@]} -gt ${i} ]] && [[ ${#BASH_ARGV[@]} -ge $(( nextArg + BASH_ARGC[i] )) ]]; then
for (( argsLeft = BASH_ARGC[i]; argsLeft; --argsLeft )); do
# Note: this reverses the order on purpose
# shellcheck disable=SC2004
argsList[${argsLeft}]=${BASH_ARGV[nextArg]}
argsList[argsLeft]=${BASH_ARGV[nextArg]}
(( nextArg ++ ))
done

Expand Down

0 comments on commit 7c7eb55

Please sign in to comment.