Created
October 15, 2019 15:03
-
-
Save boxcee/a39284ed926466ad18a77ad33c37bff6 to your computer and use it in GitHub Desktop.
run tar from ubuntu docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CWD=$(pwd) | |
docker run --rm -it -v ${CWD}:/${CWD} ubuntu:18.04 /bin/bash -c "cd ${CWD} && tar ${1} ${2} ${@:3} && chmod 006 ${2}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment