Add some commands
This commit is contained in:
9
.local/bin/station-cmd-present
Executable file
9
.local/bin/station-cmd-present
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Returns true if all the commands passed in as arguments exit on the system.
|
||||
|
||||
for cmd in "$@"; do
|
||||
command -v "$cmd" &>/dev/null || exit 1
|
||||
done
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user