sapphrc/usr/bin/sapphrc_exclude
2024-03-27 13:35:50 -06:00

35 lines
507 B
Bash
Executable file

#!/bin/bash
COMMAND=$1
source ./lib/sapphrc/sapphrc-functions
source ./lib/sapphrc/sapphrc-font
validate_backupdir
inex="exclude"
case $COMMAND in
add|remove )
shift 1;;&
add )
action="add";;
remove )
action="remove";;
* )
usage
exit 1;;
esac
while getopts 'hp:' flag; do
case "${flag}" in
p ) echo "${OPTARG}";shift 2;profile_name="${OPTARG}";;&
h ) usage;exit 1 ;;
esac
done
case "${action}" in
add )
inex_func "$@";;
remove )
inex_rm "$@";;
esac