Skip to content
Snippets Groups Projects
Commit 0ea8735c authored by Mert Dirik's avatar Mert Dirik
Browse files

Check for existence of 'comm' command

parent 974ccb02
No related branches found
No related tags found
No related merge requests found
......@@ -284,7 +284,13 @@ retire() {
unset VCSH_DIRECTORY
}
command_exists() {
command -v "$1" >/dev/null 2>&1 || fatal "Could not find '$1' command"
}
list_untracked() {
command_exists comm
temp_file_others=$(mktemp) || fatal 'Could not create temp file'
temp_file_untracked=$(mktemp) || fatal 'Could not create temp file'
temp_file_untracked_copy=$(mktemp) || fatal 'Could not create temp file'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment