#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2018-present 5schatten (https://github.com/5schatten) . /etc/profile # Set common paths SKYSCRAPER_HOME_CONFIG=/storage/.config/skyscraper SKYSCRAPER_HOME=/storage/.skyscraper # create link to config directory if [ ! -L ${SKYSCRAPER_HOME} ]; then cp -r ${SKYSCRAPER_HOME}/* ${SKYSCRAPER_HOME_CONFIG}/ rm -rf ${SKYSCRAPER_HOME} ln -s ${SKYSCRAPER_HOME_CONFIG} ${SKYSCRAPER_HOME} fi Skyscraper "$@"