123456789101112131415161718192021222324252627 |
- #!/bin/bash
- # Copyright © 2024 Jeffrey Cliff
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or (at
- # your option) any later version.
- #
- # This program is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <https://www.gnu.org/licenses/>.
- # echo "what is this value"
- touch /tmp/known-instances
- grep -i $1 /tmp/known-instances
- if [[ 1 == $? ]]
- then
- echo $1 >> /tmp/known-instances
- setterm --foreground green;
- echo "instance block estimate: " `how_many_blocks_estimate.sh $1`
- setterm --foreground default;
- fi
|