Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit on 20180127 branch master 825769958.
- Loading branch information
Showing
6 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# Copyright 2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 | ||
# Website for this project at https://sdrausty.github.io/TermuxArch | ||
# See https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank You! | ||
# Based on http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_03.html | ||
# Regarding https://github.com/sdrausty/TermuxArch/issues/37 | ||
# This script does a very simple test for checking disk space. | ||
|
||
space=`df /storage/emulated/0 | awk '{print $4}' | sed '2q;d'` | ||
printf $space | ||
if [[ $space = *G ]] || [[ $space = *T ]];then | ||
#if [ $space == *G ];then | ||
Message="All is quiet." | ||
else | ||
Message="Start thinking about cleaning out some stuff. There's a partition that has just $space." | ||
fi | ||
|
||
printf "\n$Message\n" | ||
printf "\nDate Message\n" | ||
printf "\nDisk report $space on `date`\n" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
b083225ee299727c96c6523e21c0c242 setupTermuxArch.tar.gz | ||
2f82d126d32075f0e0877e3d3979a1ef setupTermuxArch.tar.gz |
Binary file not shown.