Skip to content
Snippets Groups Projects
Commit 1ed20d0a authored by papiris's avatar papiris
Browse files

apk-snap-hook: get rid of redundant logic, pass directly to apk-snap

parent 03b93f9b
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#passes commit stage (pre/post) to apk-snap
if [ "$1" = "pre-commit" ]; then
commit_stage="pre-commit"
elif [ "$1" = "post-commit" ]; then
commit_stage="post-commit"
fi
/usr/bin/python /usr/bin/apk-snap --ini /etc/apk-snap/apk-snap.ini $commit_stage
/usr/bin/python /usr/bin/apk-snap --ini /etc/apk-snap/apk-snap.ini $1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment