Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Dec 1, 2018
1 parent 4c84bb5 commit c60c658
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
11 changes: 11 additions & 0 deletions modules/1-install_jetson/1-install_jetson.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ script_check()
return 1
}

script_info()
{
script_check

if [ $? -eq 1 ] ; then
local info_je=$(jetson_release)
local je_version=$(echo $info_je | grep -Po '(?<=Jetson Easy v)[^;]+' )
echo " - Update jetson_easy from $je_version to $JETSON_EASY_VERSION"
fi
}

script_run()
{
tput setaf 6
Expand Down
14 changes: 4 additions & 10 deletions modules/7-set_git/7-set_git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ script_load_default()

script_save()
{
if [ ! -z ${NEW_GIT_USERNAME+x} ] ; then
if [ ! -z ${NEW_GIT_USERNAME+x} ] && [ ! -z $NEW_GIT_USERNAME ] ; then
# if [ NEW_GIT_USERNAME != $(git config user.name) ] ; then
echo "NEW_GIT_USERNAME=\"$NEW_GIT_USERNAME\"" >> $1
# fi
fi
if [ ! -z ${NEW_GIT_EMAIL+x} ] ; then
if [ ! -z ${NEW_GIT_EMAIL+x} ] && [ ! -z $NEW_GIT_EMAIL ] ; then
echo "NEW_GIT_EMAIL=\"$NEW_GIT_EMAIL\"" >> $1
fi
}
Expand All @@ -136,12 +136,9 @@ script_info()

set_user_name()
{
# Load default user
script_load_user

local NEW_GIT_USERNAME_TMP_VALUE
NEW_GIT_USERNAME_TMP_VALUE=$(whiptail --inputbox "$MODULE_NAME - Set user name" 8 78 $NEW_GIT_USERNAME --title "Set user.name" 3>&1 1>&2 2>&3)
exitstatus=$?
local exitstatus=$?
if [ $exitstatus = 0 ] ; then
# Write the new workspace
NEW_GIT_USERNAME=$NEW_GIT_USERNAME_TMP_VALUE
Expand All @@ -150,12 +147,9 @@ set_user_name()

set_email()
{
# Load default email
script_load_email

local NEW_GIT_EMAIL_TMP_VALUE
NEW_GIT_EMAIL_TMP_VALUE=$(whiptail --inputbox "$MODULE_NAME - Set user email" 8 78 $NEW_GIT_EMAIL --title "Set user.email" 3>&1 1>&2 2>&3)
exitstatus=$?
local exitstatus=$?
if [ $exitstatus = 0 ]; then
# Write the new workspace
NEW_GIT_EMAIL=$NEW_GIT_EMAIL_TMP_VALUE
Expand Down
3 changes: 1 addition & 2 deletions modules/9-deeplearning/9-deeplearning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ script_save()
fi

if [ ! -z ${DP_FOLDER+x} ] ; then
if [ $DP_FOLDER != "\"\"" ]
then
if [ $DP_FOLDER != "\"\"" ] ; then
echo "DP_FOLDER=\"$DP_FOLDER\"" >> $1
fi
fi
Expand Down

0 comments on commit c60c658

Please sign in to comment.