Skip to content
Snippets Groups Projects
Unverified Commit 3d43c324 authored by real root's avatar real root Committed by Oliver Smith
Browse files

tinydm-set-session: fix indentation (MR 21)

parent 7fe439fd
Branches master
No related tags found
1 merge request!21fix indentation
Pipeline #216503 passed
......@@ -2,10 +2,12 @@
# Copyright 2020 Oliver Smith
# Copyright 2020 Clayton Craft
# SPDX-License-Identifier: GPL-3.0-or-later
exit_usage() {
echo "usage: $0 [-f] -s session-file"
exit 1
}
force=false
while getopts fs:h opt; do
case "$opt" in
......@@ -19,7 +21,7 @@ done
if ! [ -e "$session" ]; then
echo "tinydm: Session file does not exist: $session"
exit 1
exit 1
fi
mkdir -p /var/lib/tinydm
......@@ -34,8 +36,8 @@ fi
if [ -e "$session_old" ] && ! $force; then
echo "tinydm: Session already set to: $session_old"
echo "tinydm: To change it, run: 'tinydm-set-session -f -s $session'"
exit 0
echo "tinydm: To change it, run: 'tinydm-set-session -f -s $session'"
exit 0
fi
ln -sf "$session" "$target"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment