Skip to content

Commit

Permalink
Nits in handin-prep script
Browse files Browse the repository at this point in the history
  • Loading branch information
haogang committed Sep 6, 2012
1 parent e4074e4 commit 8b00c92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/lab.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LAB=1
PACKAGEDATE=Mon Sep 3 17:08:37 EDT 2012
PACKAGEDATE=Thu Sep 6 11:08:36 EDT 2012
3 changes: 2 additions & 1 deletion handin-prep
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ REPO="handin"

# generate key pairs if not exist
if ! test -r "$KEYFILE"; then
read -p "SSH key file $KEYFILE does not exists, generate one? [Y/n]" r
read -p "SSH key file $KEYFILE does not exist, generate one? [Y/n]" r
test "$r" = y -o "$r" = Y -o -z "$r" || exit 0

mkdir -p "`dirname $KEYFILE`"
if ! ssh-keygen -t rsa -N '' -C '' -f "$KEYFILE"; then
echo "$0: cannot generate key pairs"
exit 1
Expand Down

0 comments on commit 8b00c92

Please sign in to comment.