Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions blueprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,12 @@ esac
shift 2

# prevent interesting freakout when passing "*" as an argument
if [[ $* == *"*"* ]]; then
PRINT FATAL "\"*\" cannot be used as an argument."
exit 2
fi
for arg in "$@"; do
if [[ "$arg" == "*" ]]; then
PRINT FATAL "\"*\" cannot be used as an argument."
exit 2
fi
done

Command "$@"
exit 0
Loading