mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Simplify internals of init command a bit
This commit is contained in:
@@ -45,15 +45,8 @@ You might also need to add Tmuxifier's bin directory to your PATH."
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print=""
|
# Print help if "-" argument is not given
|
||||||
for args in "$@"; do
|
if [[ " $@ " != *" - "* ]]; then
|
||||||
if [ "$args" = "-" ]; then
|
|
||||||
print=1
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -z "$print" ]; then
|
|
||||||
echo "$(tmuxifier-help init $@)" >&2
|
echo "$(tmuxifier-help init $@)" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user