diff options
Diffstat (limited to 'bin/common')
-rwxr-xr-x | bin/common/cx | 2 | ||||
-rwxr-xr-x | bin/common/gt | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/common/cx b/bin/common/cx index 88fb817..cbabaaf 100755 --- a/bin/common/cx +++ b/bin/common/cx @@ -1,2 +1,2 @@ #!/bin/sh -[ -x "$1" ] && chmod -x "$1" || chmod +x "$1" +[ -x "$1" ] && chmod u-x "$1" || chmod u+x "$1" diff --git a/bin/common/gt b/bin/common/gt index d2ae3e5..78cc913 100755 --- a/bin/common/gt +++ b/bin/common/gt @@ -56,6 +56,7 @@ while getopts ":a:c:f:lsheu" opt; do repo="$(git rev-parse --show-toplevel)" remote_url="$(git remote show -n origin | awk '/^ Fetch/ {print $NF}')" + # TODO: check if remote_url is not empty if grep "^$repo " "$REPOS" >/dev/null 2>&1; then printf >&2 'added already.\n' |