lint
This commit is contained in:
parent
818f48d92f
commit
87c53a18ba
2 changed files with 6 additions and 5 deletions
|
@ -1,12 +1,13 @@
|
||||||
ps1() {
|
ps1() {
|
||||||
local code=${1}
|
local date host
|
||||||
local date="$(date +%H:%M:%S)"
|
local code="${1}"
|
||||||
|
date="$(date +%H:%M:%S)"
|
||||||
local git
|
local git
|
||||||
local host="$(hostname)"
|
host="$(hostname)"
|
||||||
local path="${PWD}"
|
local path="${PWD}"
|
||||||
local user="${USER}"
|
local user="${USER}"
|
||||||
local view="└ "
|
local view="└ "
|
||||||
if [ ${code} -ne 0 ]; then
|
if [ "${code}" -ne 0 ]; then
|
||||||
view="${view}\e[0;31m"
|
view="${view}\e[0;31m"
|
||||||
else
|
else
|
||||||
view="${view}\e[0;32m"
|
view="${view}\e[0;32m"
|
||||||
|
|
|
@ -23,7 +23,7 @@ fs_make_btrfs_swap() {
|
||||||
local size="${2}"
|
local size="${2}"
|
||||||
local uuid="${3}"
|
local uuid="${3}"
|
||||||
if [ -n "${path}" ]; then
|
if [ -n "${path}" ]; then
|
||||||
set filesystem mkswapfile
|
set -- filesystem mkswapfile
|
||||||
if [ -n "${size}" ]; then
|
if [ -n "${size}" ]; then
|
||||||
set -- "${@}" \
|
set -- "${@}" \
|
||||||
--size "${size}"
|
--size "${size}"
|
||||||
|
|
Loading…
Reference in a new issue