This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Type script: Shell | |
# Program: Progress percent | |
# Description: Shell script function to demonstrate a process according with percentage inserted seconds. | |
# Version: 1.0.0 | |
# | |
#------------------------------------------Using -------------------------------------------- | |
# _PROGRESS_PERCENT "begin_percent" "end_percent" "seconds_time_of_progress" "message" | |
# | |
# NOTE: For cancel process, using: Ctrl+C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Test If and Case using "Curl -L" through Gist | |
# | |
# | |
if [[ "$(id -u)" != "0" ]]; then | |
echo "You are not root!" | |
echo "You have the root password? (y/n)" | |
read -p "Reply: " reply |
NewerOlder