mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 20:15:05 +00:00
fix cicd
This commit is contained in:
@@ -639,19 +639,19 @@ class CfgYaml:
|
||||
if len(val) < 3:
|
||||
err = 'bad format for chmod: {}'.format(val)
|
||||
self._log.err(err)
|
||||
raise YamlException('dotfile chmod error: {}'.format(err))
|
||||
raise YamlException(err)
|
||||
try:
|
||||
int(val)
|
||||
except Exception:
|
||||
err = 'bad format for chmod: {}'.format(val)
|
||||
self._log.err(err)
|
||||
raise YamlException('dotfile chmod error: {}'.format(err))
|
||||
raise YamlException(err)
|
||||
for x in val:
|
||||
y = int(x)
|
||||
if y < 0 or y > 7:
|
||||
err = 'bad format for chmod: {}'.format(val)
|
||||
self._log.err(err)
|
||||
raise YamlException('dotfile chmod error: {}'.format(err))
|
||||
raise YamlException(err)
|
||||
|
||||
return new
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ Options:
|
||||
-k --key Treat <path> as a dotfile key.
|
||||
-l --link=<link> Link option (nolink|link|link_children).
|
||||
-L --file-only Do not show diff but only the files that differ.
|
||||
-m --preserve-mode Insert a chmod entry in the dotfile with its permissions.
|
||||
-m --preserve-mode Insert a chmod entry in the dotfile with its mode.
|
||||
-n --nodiff Do not diff when installing.
|
||||
-p --profile=<profile> Specify the profile to use [default: {}].
|
||||
-P --show-patch Provide a one-liner to manually patch template.
|
||||
|
||||
@@ -132,6 +132,7 @@ def _fake_args():
|
||||
args['--as'] = None
|
||||
args['--file-only'] = False
|
||||
args['--workers'] = 1
|
||||
args['--preserve-mode'] = False
|
||||
# cmds
|
||||
args['profiles'] = False
|
||||
args['files'] = False
|
||||
|
||||
Reference in New Issue
Block a user