-
-
Notifications
You must be signed in to change notification settings - Fork 862
Expand file tree
/
Copy pathcommand_workshop_update.sh
More file actions
36 lines (31 loc) · 1.02 KB
/
command_workshop_update.sh
File metadata and controls
36 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# LinuxGSM command_workshop_install.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com
# Description: List and installs available mods along with mods_list.sh and mods_core.sh.
commandname="WORKSHOP-INSTALL"
commandaction="Installing Steam Workshop mods"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_firstcommand_set
check.sh
workshop_core.sh
fn_print_header
fn_create_workshop_dir
fn_workshop_get_list
# Displays a list of installed mods.
echo -e "Installed workshop addons/mods"
echo -e "================================="
fn_workshop_installed_list
for modid in "${workshoplist[@]}"; do
modname="$(fn_workshop_get_mod_name ${modid})"
if [ fn_workshop_check_mod_update "${modid}" ]; then
echo "Mod ${modname} (${modid}) is not up to date."
fn_workshop_download "${modid}"
fn_workshop_copy_destination "${modid}"
else
echo "Mod ${modname} is up to date."
fi
done
fn_workshop_lowercase
core_exit.sh