4 ms·
Not really an experienced bash user, but just dropping the extra quotes would work? message="$1" git commit -m "$message" You'll have to pass the word
by stinos 5y ago
Not really an experienced bash user, but just dropping the extra quotes would work?
message="$1"
git commit -m "$message"
You'll have to pass the words in quotes though. Which I'd prefer because it's the common way. Otherwise you'd use message="$@"
- graderjs 5y agoCool thanks! :)