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