Skip to content

Commit

Permalink
remove spinner_loading in .bash_profile
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel <[email protected]>
  • Loading branch information
Daniel committed Apr 10, 2017
1 parent 7ed7627 commit 85a9dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion nextcloud-startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ printf "%s\n""${Green}"
echo "+--------------------------------------------------------------------+"
echo "| Congratulations! You have successfully installed Nextcloud! |"
echo "| |"
printf "| ${Color_Off}Login to Nextcloud in your browser:${Cyan}\" $ADDRESS2\"${Green} |\n"
printf "| ${Color_Off}Login to Nextcloud in your browser: ${Cyan}\"$ADDRESS2\"${Green} |\n"
echo "| |"
printf "| ${Color_Off}Publish your server online! ${Cyan}https://goo.gl/iUGE2U${Green} |\n"
echo "| |"
Expand Down
14 changes: 1 addition & 13 deletions static/change-ncadmin-profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ debug_mode
rm "/home/$UNIXUSER/.profile"

cat <<-UNIXUSER-PROFILE > "$UNIXUSER_PROFILE"
# Add this here to be able to show spinner_loading while the scripts are loading
spinner_loading_initial() {
pid=$!
spin='-\|/'
i=0
while kill -0 $pid 2>/dev/null
do
i=$(( (i+1) %4 ))
printf "\r[${spin:$i:1}] Loading initial script..."
sleep .1
done
}
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
Expand All @@ -50,7 +38,7 @@ if [ -d "$HOME/bin" ]
then
PATH="$HOME/bin:$PATH"
fi
bash /var/scripts/instruction.sh & spinner_loading_initial
bash /var/scripts/instruction.sh
bash /var/scripts/history.sh
sudo -i
Expand Down

0 comments on commit 85a9dc0

Please sign in to comment.