projects
/
xremote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OCD cosmetics.
[xremote.git]
/
xremote.sh
diff --git
a/xremote.sh
b/xremote.sh
index
ecf6f3e
..
5536d01
100755
(executable)
--- a/
xremote.sh
+++ b/
xremote.sh
@@
-111,18
+111,20
@@
done
######################################################################
######################################################################
-[[ -a "$1" ]] || (help && exit 1)
+[[ -a "$1" ]] || (help && echo >&2 "Cannot find $1" && exit 1)
+
+cd "$(dirname "$1")"
main="$(basename "$1")"
main_config="${main}.xremote"
main="$(basename "$1")"
main_config="${main}.xremote"
-if [[
! -f "${main}.xremote
" ]]
+if [[
-f "${main_config}
" ]]
then
then
+ echo "xremote: found ${main_config}"
+else
main_config="${main}"
fi
main_config="${main}"
fi
-cd "$(dirname "$1")"
-
shift
trap cleanup_remote_tmp EXIT
shift
trap cleanup_remote_tmp EXIT
@@
-202,6
+204,7
@@
fi
######################################################################
# I find this slightly ugly ...
######################################################################
# I find this slightly ugly ...
+
for s in "$@"
do
quoted_args="${quoted_args} \"${s}\""
for s in "$@"
do
quoted_args="${quoted_args} \"${s}\""
@@
-236,6
+239,7
@@
do
;;
esac
fi
;;
esac
fi
+
done < "${main_config}"
set +f
done < "${main_config}"
set +f