forked from Shinonome/dots-hyprland
Update checkdeps
This commit is contained in:
@@ -17,27 +17,17 @@ para=$(getopt \
|
|||||||
-n "$0" -- "$@")
|
-n "$0" -- "$@")
|
||||||
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
|
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
## getopt Phase 1
|
|
||||||
# ignore parameter's order, execute options below first
|
|
||||||
eval set -- "$para"
|
eval set -- "$para"
|
||||||
while true ; do
|
while true ; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h|--help) showhelp;exit;;
|
-h|--help) showhelp;exit;;
|
||||||
--) break ;;
|
--) shift;break ;;
|
||||||
*) shift ;;
|
*) sleep 0 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
eval set -- "$para"
|
if [[ -f "$1" ]]; then
|
||||||
while true ; do
|
echo "Using list file \"$1\".";LIST_FILE_PATH="$1";shift 1
|
||||||
case "$1" in
|
else
|
||||||
--) break ;;
|
echo "Wrong path \"$1\" of list file.";exit 1
|
||||||
*)
|
fi
|
||||||
if [[ -f "$1" ]]; then
|
|
||||||
echo "Using list file \"$1\".";LIST_FILE_PATH="$1";shift 1
|
|
||||||
else
|
|
||||||
echo "Wrong path of list file.";exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|||||||
Reference in New Issue
Block a user