Remove ex function
This commit is contained in:
parent
fe071e82a6
commit
731c9fd800
6
cv
6
cv
@ -5,7 +5,7 @@ w=14
|
|||||||
dfmt="+%Y-%m-%d"
|
dfmt="+%Y-%m-%d"
|
||||||
data="$HOME/Documents/cv"
|
data="$HOME/Documents/cv"
|
||||||
country=$1
|
country=$1
|
||||||
[ ! -d "$data" ] && ex "mkdir -p $data"
|
[ ! -d "$data" ] && mkdir -p "$data"
|
||||||
[ -z $date ] && date=$(date $dfmt)
|
[ -z $date ] && date=$(date $dfmt)
|
||||||
[ -z $ydate ] && ydate=$(date -d yesterday $dfmt)
|
[ -z $ydate ] && ydate=$(date -d yesterday $dfmt)
|
||||||
|
|
||||||
@ -17,10 +17,6 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Functions go here.
|
# Functions go here.
|
||||||
ex(){
|
|
||||||
echo -e "> ${*}"
|
|
||||||
$@
|
|
||||||
}
|
|
||||||
title(){
|
title(){
|
||||||
local w=48
|
local w=48
|
||||||
printf "║ %-${w}s ║\n" "${*}"
|
printf "║ %-${w}s ║\n" "${*}"
|
||||||
|
Reference in New Issue
Block a user