mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Replaced - with . in nuxfs
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
531f55f249
commit
135eabc57c
2 changed files with 12 additions and 12 deletions
12
bin/nuxfs
12
bin/nuxfs
|
|
@ -10,7 +10,7 @@ nux.include nuxfs.dsl
|
|||
|
||||
## verify - Verifies that directory matches nuxfs specification
|
||||
function task.verify {
|
||||
link-exists() {
|
||||
link.exists() {
|
||||
nux.log debug "Testing '$1' as link"
|
||||
if test ! -h "$1"; then
|
||||
nuxfs.error "$1" "is not symlink."
|
||||
|
|
@ -26,26 +26,26 @@ function task.verify {
|
|||
nuxfs.warning "$1" "target '$NC_White$2$NC_No' does not exists."
|
||||
fi
|
||||
}
|
||||
def-notexists() {
|
||||
def.notexists() {
|
||||
nuxfs.error "$1" "does not exists".
|
||||
}
|
||||
nuxfs.dsl.execute .nuxfs
|
||||
}
|
||||
|
||||
## create - Creates missing files as described in nuxfs definition.
|
||||
## create - Creates missing files as described in nuxfs definition.
|
||||
function task.create {
|
||||
directory-notexists() {
|
||||
directory.notexists() {
|
||||
nuxfs.info "$1" "Created directory";
|
||||
mkdir -p "$1"
|
||||
|
||||
}
|
||||
|
||||
link-notexists() {
|
||||
link.notexists() {
|
||||
nuxfs.info "$1" "Creating link to '$2'";
|
||||
ln -s "$2" "$1"
|
||||
}
|
||||
|
||||
git-notexists() {
|
||||
git.notexists() {
|
||||
log.warning "Not implemented";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue