Skip to content

Commit

Permalink
change a few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed May 4, 2017
1 parent 12c3094 commit 54b72c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sshm
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function connect()
temp=$DATA_FILE
fi

# Use a cache file to find the wanted server.save the latest result of sshm -l, so user won't miss the host
# index argument caused by the update of DATA_FILE.
# Use a cache file, which saves the latest result of sshm -l, to locate the wanted server,
# so user won't miss the host index argument caused by the update of DATA_FILE.
server=$(sed -n "$host p" $temp | awk '{for(i=3; i<=NF; i++) printf "%s ", $i} {print ""}')
if [[ -z $server ]]; then
echo "The host you specific doesn't exist."
Expand Down
2 changes: 1 addition & 1 deletion sshm-update
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -o errexit

DATA_PATH="$HOME/.sshm"
DATA_FILE="$HOME/.sshm/.data"
DATA_FILE="$DATA_PATH/.data"

function update_data_file()
{
Expand Down

0 comments on commit 54b72c0

Please sign in to comment.