Do some cleanup and fixes

This commit is contained in:
Tobias Reisinger 2022-10-27 15:55:18 +02:00
parent 6c16a85be2
commit 028d3d7760
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 5 additions and 17 deletions

View file

@ -78,7 +78,7 @@ case $1 in
show) _systemctl "$2" cat ;;
edit) _systemctl "$2" edit --full ;;
enable) _systemctl "$2" add-wants autostart.target ;;
disable) _systemctl "$2" enable ;;
disable) _systemctl "$2" disable ;;
status) _systemctl "${2:-*}" status ;;
start) systemctl --user start autostart.target ;;
*) echo "'$1' is not valid" ;;

View file

@ -1,8 +1,10 @@
#!/usr/bin/env sh
base_path="$HOME/.cache/remote-sources"
mkdir -p "$base_path"
file_path="$base_path/$2"
autoinstall file "$1" "$file_path"
mkdir -p "$base_path"
if [ ! -f "$file_path" ]
then
echo "Installing file $2"