style: enforce 2-space tabs in shell scripts
This commit is contained in:
parent
624ca5314e
commit
47cbbef34c
1 changed files with 8 additions and 8 deletions
|
|
@ -7,13 +7,13 @@ min=1
|
||||||
max=10
|
max=10
|
||||||
|
|
||||||
function clamp {
|
function clamp {
|
||||||
if test $1 -lt $min; then
|
if test $1 -lt $min; then
|
||||||
echo $min
|
echo $min
|
||||||
elif test $1 -gt $max; then
|
elif test $1 -gt $max; then
|
||||||
echo $max
|
echo $max
|
||||||
else
|
else
|
||||||
echo $1
|
echo $1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if test "$direction" = "down"
|
if test "$direction" = "down"
|
||||||
|
|
@ -25,5 +25,5 @@ elif test "$direction" = "up"
|
||||||
then
|
then
|
||||||
target=$(clamp $(($current-1)))
|
target=$(clamp $(($current-1)))
|
||||||
echo "jumping to $target"
|
echo "jumping to $target"
|
||||||
hyprctl dispatch workspace $target
|
hyprctl dispatch workspace $target
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue