Skip to content

Commit

Permalink
Make sure the rm parameter never expands to root
Browse files Browse the repository at this point in the history
Implement ShellCheck suggestion: https://www.shellcheck.net/wiki/SC2115
  • Loading branch information
Lucki authored and ifl0w committed Nov 30, 2023
1 parent 8cb4276 commit de5d932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ setup_environment() {
npm install

# Delete output directory, everything will be rewritten
rm -r "$DESTDIR/*" &>/dev/null || true
rm -r "${DESTDIR:?}/*" &>/dev/null || true
}

compile_ui() {
Expand Down

0 comments on commit de5d932

Please sign in to comment.