Created
September 22, 2020 11:41
-
-
Save IMelker/8f4008fc48bccbc636d7dda82cd8adf2 to your computer and use it in GitHub Desktop.
This is workaround for faster CLion file transfer in context of remote host
This file contains hidden or 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
#!/bin/bash | |
# | |
# This is workaround for faster CLion file transfer in context of remote host | |
# | |
excludes=() | |
[[ $PWD =~ cmake-build- ]] && excludes=('--exclude=*.o' '--exclude=./bin' '--exclude=./lib') | |
first="$1" | |
shift | |
file="$1" | |
shift | |
exec /bin/tar "$first" "$file" "${excludes[@]}" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment