1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00
nux-env/inc/dsl/nuxfs.apply.dsl
root a7b55553ad Nuweb drop
Signed-off-by: root <root@tdm-cloud.(none)>
2019-03-09 12:32:11 +01:00

18 lines
374 B
Text
Executable file

.use-dsl nuxfs
dir.check.recover() {
nuxfs.info "$rel_path" "Created directory";
mkdir -p "$abs_path"
}
link.check.recover() {
nuxfs.info "$rel_path" "Creating link to '$3'";
ln -s "$target" "$abs_path"
}
git.check.recover() {
$GIT_BIN clone "$origin" "$abs_path"
}
cathegorize.process.dir() {
mkdir -p "$cat_dir"
nux.dsl.info "$cat_dir" Created directory
}