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
#!/bin/bash | |
# This script was created for fixing zip files downloaded from using (https://github.com/dulldusk/phpfm/) | |
# This is a known issue but not fixed yet (https://github.com/dulldusk/phpfm/issues/27) | |
# The problem I have faced so far is that the php program replaces all _ characters with some unicode character and that | |
# all folders are accompanied by extra files with the same name (as mentioned in the issue page also) | |
# Requires: bash, 7z, zip | |
# Usage: make it executable ofcourse, and | |
# ./fix-duplicate-names-in-zip.sh test.zip |
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
#echo $PWD | |
# enable git-prompt only if you're in a git repo | |
is_git() | |
{ | |
git rev-parse --git-dir &>/dev/null | |
status=$? |