mirror of
https://github.com/rwxrob/dot
synced 2024-11-14 18:12:56 +00:00
14 lines
284 B
Bash
Executable File
14 lines
284 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
## Returns the number of changed files in the current directory or any
|
|
## subdirectories recursively. Useful for detecting changes and taking
|
|
## action (see changed).
|
|
|
|
haschanged () {
|
|
local -a files
|
|
files=($(changed))
|
|
return ${#files[@]}
|
|
}
|
|
|
|
haschanged "$@"
|