cleanup file and issue type
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
6d38ae5f11
commit
8d8d7da036
2 changed files with 4 additions and 6 deletions
|
@ -23,15 +23,12 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
. cdist-config
|
. cdist-config
|
||||||
set -e
|
|
||||||
|
|
||||||
pwd -P >&2
|
pwd -P >&2
|
||||||
ls >&2
|
ls >&2
|
||||||
|
|
||||||
type="$(cat type)"
|
type="$(cat type)"
|
||||||
mode="$(cat mode)"
|
path="$(cat destination)"
|
||||||
path="$(cat path)"
|
|
||||||
|
|
||||||
|
|
||||||
case "$type" in
|
case "$type" in
|
||||||
directory)
|
directory)
|
||||||
|
@ -49,6 +46,7 @@ case "$type" in
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$mode" ]; then
|
if [ -f mode ]; then
|
||||||
|
mode="$(cat mode)"
|
||||||
echo chmod \"$mode\" \"$path\"
|
echo chmod \"$mode\" \"$path\"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -31,4 +31,4 @@ case "$(cat "$__cdist_out_explorers/os")" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# FIXME: replace id with $destination post-1.0
|
# FIXME: replace id with $destination post-1.0
|
||||||
__file etc-issue --source "$source" --destination "$destination"
|
__file etc-issue --source "$source" --destination "$destination" --type file
|
||||||
|
|
Loading…
Reference in a new issue