mirror of
https://github.com/rwxrob/dot
synced 2024-11-18 15:25:52 +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 "$@"
|