fix(login): every-hour script & env var
This commit is contained in:
parent
e024a5e910
commit
47afe474a8
@ -7,12 +7,14 @@ alias xterm='xterm -bg black -fg white -fa Hack -fs 10'
|
||||
## Cloud folder must exist
|
||||
#
|
||||
if [ -z "$NC_STORAGE" ]; then
|
||||
echo "${fg[red]}NC_STORAGE environment variable not set."
|
||||
autoload colors && colors
|
||||
echo "${fg[cyan]}NC_STORAGE${fg[red]} environment variable not set."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d $NC_STORAGE ]; then
|
||||
echo "${fg[cyan]}$NC_STORAGE ${fg[red]}is not a folder (in \$NC_STORAGE)."
|
||||
autoload colors && colors
|
||||
echo "${fg[cyan]}\$NC_STORAGE (=$NC_STORAGE)${fg[red]} is not a folder."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
@ -14,7 +14,8 @@ xterm -geometry 120x40 -title "Mount devices" -hold -e $HOME/bin/mount_dev.zsh
|
||||
|
||||
## Start periodic actions
|
||||
#
|
||||
$HOME/bin/every-hour.zsh
|
||||
|
||||
eval xterm -hold -e env $(cat ~/.config/environment.d/variables.conf) $HOME/bin/every-hour.zsh
|
||||
|
||||
|
||||
## Wait for an Internet connection
|
||||
|
Loading…
x
Reference in New Issue
Block a user