curl -sL https://gist.githubusercontent.com/kawaz/8c69d4d40229232c24e4/raw/00-fix-gluster-completion.sh | bash
Last active
March 27, 2016 13:00
-
-
Save kawaz/8c69d4d40229232c24e4 to your computer and use it in GitHub Desktop.
glusterfsのrpmで入る補完スクリプトがバグっててyum updateの度に手で直してはデグレされてを繰り返してるのでワンライナー化した。ちなみに1年位前に本家にプルリクしようかと思ってソース見たら、既に同じ修正がされてたからそのうちrpmのもある日のupdateで直るだろうと思ってたんだが一向に直らねぇ…。どうなってるんだよ一体!?
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 | |
set -e | |
if grep -qF 'A-Za-z0-9_-.' /etc/bash_completion.d/gluster; then | |
sudo perl -i -pe's/A-Za-z0-9_\-\./A-Za-z0-9_\\-\\./' /etc/bash_completion.d/gluster | |
. /etc/bash_completion.d/gluster | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment